Exception: Authenticate::Modules::MissingAttribute

Inherits:
StandardError
  • Object
show all
Defined in:
lib/authenticate/modules.rb

Overview

Thrown if required attributes are missing.

Instance Method Summary collapse

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

#messageObject



79
80
81
# File 'lib/authenticate/modules.rb', line 79

def message
  "Required attributes are missing on your user model: #{@attributes.join(', ')}"
end