Module: Reform::Form::ORM
- Defined in:
- lib/reform/form/orm.rb
Defined Under Namespace
Modules: UniquenessValidator
Instance Method Summary collapse
Instance Method Details
#model_for_property(name) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/reform/form/orm.rb', line 2 def model_for_property(name) return model unless is_a?(Reform::Form::Composition) # i am too lazy for proper inheritance. there should be a ActiveRecord::Composition that handles this. model_name = (name)[:on] model[model_name] end |