Exception: ActionControl::NotAuthorizedError

Inherits:
AuthorizationError show all
Defined in:
lib/action_control/errors.rb

Overview

Note:

Should always be called at the end of the #authorize! method.

Error if user unauthorized.

Raises:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error = {}) ⇒ NotAuthorizedError

Returns a new instance of NotAuthorizedError.



30
31
32
# File 'lib/action_control/errors.rb', line 30

def initialize(error={})
	@error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



28
29
30
# File 'lib/action_control/errors.rb', line 28

def error
  @error
end