Exception: ActionControl::NotAuthenticatedError
- Inherits:
-
AuthenticationError
- Object
- StandardError
- AuthenticationError
- ActionControl::NotAuthenticatedError
- Defined in:
- lib/action_control/errors.rb
Overview
Note:
Should always be called at the end of the #authenticate! method.
Error if user not authenticated
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error = {}) ⇒ NotAuthenticatedError
constructor
A new instance of NotAuthenticatedError.
Constructor Details
#initialize(error = {}) ⇒ NotAuthenticatedError
Returns a new instance of NotAuthenticatedError.
62 63 64 |
# File 'lib/action_control/errors.rb', line 62 def initialize(error={}) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
60 61 62 |
# File 'lib/action_control/errors.rb', line 60 def error @error end |