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



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

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