Exception: Revise::Models::MissingAttribute

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ MissingAttribute

Returns a new instance of MissingAttribute.



4
5
6
# File 'lib/revise/models.rb', line 4

def initialize(attributes)
  @attributes = attributes
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/revise/models.rb', line 8

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