Module: MongoMapper::Plugins::Validations

Defined in:
lib/mongo_mapper/plugins/validations.rb

Defined Under Namespace

Modules: DocumentMacros Classes: ValidatesUniquenessOf

Class Method Summary collapse

Class Method Details

.configure(model) ⇒ Object



4
5
6
# File 'lib/mongo_mapper/plugins/validations.rb', line 4

def self.configure(model)
  model.class_eval { include Validatable }
end