Module: Mongoid::Validations::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#validates_exclusion_of(*args) ⇒ Object



100
101
102
# File 'lib/locomotive/mongoid/patches.rb', line 100

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