Module: MarkMapper::Plugins::Validations::ClassMethods

Defined in:
lib/mark_mapper/plugins/validations.rb

Instance Method Summary collapse

Instance Method Details

#validates_associated(*attr_names) ⇒ Object


15
16
17
# File 'lib/mark_mapper/plugins/validations.rb', line 15

def validates_associated(*attr_names)
  validates_with AssociatedValidator, _merge_attributes(attr_names)
end

#validates_uniqueness_of(*attr_names) ⇒ Object


11
12
13
# File 'lib/mark_mapper/plugins/validations.rb', line 11

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