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