Exception: Devise::Models::MissingAttribute

Inherits:
StandardError
  • Object
show all
Defined in:
lib/devise/models.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ MissingAttribute

Returns a new instance of MissingAttribute.


6
7
8
# File 'lib/devise/models.rb', line 6

def initialize(attributes)
  @attributes = attributes
end

Instance Method Details

#messageObject


10
11
12
# File 'lib/devise/models.rb', line 10

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