class MongoMapper::DocumentNotValid
raised when document not valid and using !
Attributes
document[R]
Public Class Methods
new(document)
click to toggle source
Calls superclass method
# File lib/mongo_mapper/exceptions.rb, line 22 def initialize(document) @document = document super("Validation failed: #{document.errors.full_messages.join(", ")}") end