Module: Mongoid::Validations::ClassMethods

Defined in:
lib/locomotive/mongoid/patches.rb

Instance Method Summary collapse

Instance Method Details

#validates_exclusion_of(*args) ⇒ Object



72
73
74
# File 'lib/locomotive/mongoid/patches.rb', line 72

def validates_exclusion_of(*args)
  validates_with(ExclusionValidator, _merge_attributes(args))
end