Module: FreeForm::Property

Included in:
Form
Defined in:
lib/freeform/form/property.rb

Defined Under Namespace

Modules: ClassMethods Classes: DateParamsFilter

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parent_formObject

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