Module: Reform::Form::ActiveRecord::ClassMethods
- Defined in:
- lib/reform/form/active_record.rb
Instance Method Summary collapse
Instance Method Details
#i18n_scope ⇒ Object
13 14 15 |
# File 'lib/reform/form/active_record.rb', line 13 def i18n_scope :activerecord end |
#validates_uniqueness_of(attribute) ⇒ Object
10 11 12 |
# File 'lib/reform/form/active_record.rb', line 10 def validates_uniqueness_of(attribute) validates_with UniquenessValidator, :attributes => [attribute] end |