Exception: Authenticate::Modules::MissingAttribute
- Inherits:
-
StandardError
- Object
- StandardError
- Authenticate::Modules::MissingAttribute
- Defined in:
- lib/authenticate/modules.rb
Overview
Thrown if required attributes are missing.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ MissingAttribute
constructor
A new instance of MissingAttribute.
- #message ⇒ Object
Constructor Details
#initialize(attributes) ⇒ MissingAttribute
Returns a new instance of MissingAttribute.
75 76 77 |
# File 'lib/authenticate/modules.rb', line 75 def initialize(attributes) @attributes = attributes end |
Instance Method Details
#message ⇒ Object
79 80 81 |
# File 'lib/authenticate/modules.rb', line 79 def "Required attributes are missing on your user model: #{@attributes.join(', ')}" end |