Module: Mongo::Model::Validation

Defined in:
lib/mongo_db/model/validation.rb

Instance Method Summary collapse

Instance Method Details

#_valid?Boolean

Returns:



2
3
4
# File 'lib/mongo_db/model/validation.rb', line 2

def _valid?
  !(respond_to?(:errors) and errors and !errors.empty?)
end