Module: FreeForm::Property
- Included in:
- Form
- Defined in:
- lib/freeform/form/property.rb
Defined Under Namespace
Modules: ClassMethods Classes: DateParamsFilter
Instance Attribute Summary collapse
-
#parent_form ⇒ Object
Returns the value of attribute parent_form.
Class Method Summary collapse
Instance Method Summary collapse
- #assign_params(params) ⇒ Object (also: #assign_attributes, #populate, #fill)
Instance Attribute Details
#parent_form ⇒ Object
Returns the value of attribute parent_form.
86 87 88 |
# File 'lib/freeform/form/property.rb', line 86 def parent_form @parent_form end |
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/freeform/form/property.rb', line 3 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#assign_params(params) ⇒ Object Also known as: assign_attributes, populate, fill
118 119 120 121 122 123 124 |
# File 'lib/freeform/form/property.rb', line 118 def assign_params(params) DateParamsFilter.new.call(params) params.each_pair do |attribute, value| assign_attribute(attribute, value) end self end |