Module: Reform::Form::ActiveRecord::ClassMethods

Defined in:
lib/reform/form/active_record.rb

Instance Method Summary collapse

Instance Method Details

#i18n_scopeObject



18
19
20
# File 'lib/reform/form/active_record.rb', line 18

def i18n_scope
  :activerecord
end

#validates_uniqueness_of(attribute, options = {}) ⇒ Object



14
15
16
17
# File 'lib/reform/form/active_record.rb', line 14

def validates_uniqueness_of(attribute, options={})
  options = options.merge(:attributes => [attribute])
  validates_with(UniquenessValidator, options)
end