Module: Reform::Form::Prepopulate
- Included in:
- Reform::Form
- Defined in:
- lib/reform/form/prepopulate.rb
Overview
prepopulate!(options) prepopulator: ->(model, user_options)
Instance Method Summary collapse
Instance Method Details
#prepopulate!(options = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/reform/form/prepopulate.rb', line 4 def prepopulate!( = {}) prepopulate_local!() # call #prepopulate! on local properties. prepopulate_nested!() # THEN call #prepopulate! on nested forms. self end |