Exception: MongoMapper::DocumentNotValid
- Inherits:
-
StandardError
- Object
- StandardError
- MongoMapper::DocumentNotValid
- Defined in:
- lib/mongomapper.rb
Instance Method Summary collapse
-
#initialize(document) ⇒ DocumentNotValid
constructor
A new instance of DocumentNotValid.
Constructor Details
#initialize(document) ⇒ DocumentNotValid
49 50 51 52 |
# File 'lib/mongomapper.rb', line 49 def initialize(document) @document = document super("Validation failed: #{@document.errors.full_messages.join(", ")}") end |