Exception: ActionControl::NotAuthorizedError
- Inherits:
-
AuthorizationError
- Object
- StandardError
- AuthorizationError
- ActionControl::NotAuthorizedError
- Defined in:
- lib/action_control/errors.rb
Overview
Note:
Should always be called at the end of the #authorize! method.
Error if user unauthorized.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error = {}) ⇒ NotAuthorizedError
constructor
A new instance of NotAuthorizedError.
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
#error ⇒ Object (readonly)
Returns the value of attribute error.
28 29 30 |
# File 'lib/action_control/errors.rb', line 28 def error @error end |