Method: MotionPrime::FormSection#load_field

Defined in:
motion-prime/sections/form.rb

#load_field(field) ⇒ Object



151
152
153
154
# File 'motion-prime/sections/form.rb', line 151

def load_field(field)
  field_class = class_factory("#{field[:type]}_field_section", true)
  field_class.new(field.merge(screen: screen, collection_section: self.weak_ref))
end