Module: Mongoid::Validatable::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#validates_exclusion_of(*args) ⇒ Object



196
197
198
# File 'lib/locomotive/mongoid/patches.rb', line 196

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