Module: Devise::Orm::DataMapper::ActiveModelUniquenessCompatibility

Defined in:
lib/devise/orm/data_mapper/validations/active_model.rb

Instance Method Summary collapse

Instance Method Details

#validates_uniqueness_of(*fields) ⇒ Object



17
18
19
# File 'lib/devise/orm/data_mapper/validations/active_model.rb', line 17

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