Module: Reform::Form::Mongoid::ClassMethods
- Defined in:
- lib/reform/form/mongoid.rb
Instance Method Summary collapse
Instance Method Details
#i18n_scope ⇒ Object
18 19 20 |
# File 'lib/reform/form/mongoid.rb', line 18 def i18n_scope :mongoid end |
#validates_uniqueness_of(attribute, options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/reform/form/mongoid.rb', line 14 def validates_uniqueness_of(attribute, ={}) = .merge(:attributes => [attribute]) validates_with(UniquenessValidator, ) end |