Exception: ActionControl::NotAuthenticatedError

Inherits:
AuthenticationError show all
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

Raises:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



60
61
62
# File 'lib/action_control/errors.rb', line 60

def error
  @error
end