simplified some Active Record queries

This commit is contained in:
Hauke Klement
2015-03-11 14:31:19 +01:00
parent a06e20b6c5
commit a8bda864df
6 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ class HintsController < ApplicationController
private :hint_params
def index
@hints = Hint.where(execution_environment_id: @execution_environment.id).order(:name)
@execution_environment.hints.order(:name)
authorize!
end