Module: Ricordami::CanBeValidated::ClassMethods

Defined in:
lib/ricordami/can_be_validated.rb

Instance Method Summary collapse

Instance Method Details

#validates_uniqueness_of(*attr_names) ⇒ Object



10
11
12
# File 'lib/ricordami/can_be_validated.rb', line 10

def validates_uniqueness_of(*attr_names)
  validates_with UniqueValidator, _merge_attributes(attr_names)
end