module Form::ActiveRecord::ClassMethods

Public Instance Methods

i18n_scope() click to toggle source
# File lib/reform/form/active_record.rb, line 16
def i18n_scope
  :activerecord
end
validates_uniqueness_of(attribute, options={}) click to toggle source
# File lib/reform/form/active_record.rb, line 12
def validates_uniqueness_of(attribute, options={})
  options = options.merge(:attributes => [attribute])
  validates_with(UniquenessValidator, options)
end