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!(options = {})
  prepopulate_local!(options)  # call #prepopulate! on local properties.
  prepopulate_nested!(options) # THEN call #prepopulate! on nested forms.

  self
end