Exception: Authenticate::Modules::MissingAttribute

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ MissingAttribute

Returns a new instance of MissingAttribute.



69
70
71
# File 'lib/authenticate/modules.rb', line 69

def initialize(attributes)
  @attributes = attributes
end

Instance Method Details

#messageObject



73
74
75
# File 'lib/authenticate/modules.rb', line 73

def message
  "The following attribute(s) is (are) missing on your user model: #{@attributes.join(", ")}"
end