simplified some Active Record queries
This commit is contained in:
@ -2,7 +2,7 @@ class ErrorsController < ApplicationController
|
||||
before_action :set_execution_environment
|
||||
|
||||
def authorize!
|
||||
authorize(@error || Error.where(execution_environment_id: @execution_environment.id))
|
||||
authorize(@error || @execution_environment.errors)
|
||||
end
|
||||
private :authorize!
|
||||
|
||||
|
Reference in New Issue
Block a user