Module: Reform::Form::Prepopulate
- Included in:
- Reform::Form
- Defined in:
- lib/reform/form/prepopulate.rb
Overview
this will soon be handled in Disposable.
Instance Method Summary collapse
Instance Method Details
#prepopulate! ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/reform/form/prepopulate.rb', line 3 def prepopulate! # TODO: representer.new(fields).from_object(fields) hash = prepopulate_representer.new(fields).to_hash(:parent_form => self) prepopulate_representer.new(fields).from_hash(hash) recursive_prepopulate_representer.new(fields).to_hash # not sure if i leave that like this, consider private. self end |