This commit is contained in:
Hauke Klement
2015-03-11 15:15:55 +01:00
parent ff7f33cfd8
commit 059dc81ee5
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ class ErrorsController < ApplicationController
before_action :set_execution_environment
def authorize!
authorize(@error || @execution_environment.errors)
authorize(@error || @errors)
end
private :authorize!
@ -27,8 +27,8 @@ class ErrorsController < ApplicationController
private :error_params
def index
authorize!
@errors = Error.for_execution_environment(@execution_environment).grouped_by_message
authorize!
end
def set_execution_environment

View File

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