Method: ActForm::Model#sync
- Defined in:
- lib/act_form/model.rb
#sync(target) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/act_form/model.rb', line 40 def sync(target) self.class.attribute_set.each_key do |attr| next unless target.respond_to?(attr) target.public_send "#{attr}=", public_send(attr) end end |