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
8
9
10
# File 'lib/mongo_mapper/plugins/validations.rb', line 5

def self.configure(model)
  model.class_eval do
    include Validatable
    extend Validations::DocumentMacros
  end
end