Module: TypedFields::InstanceMethods
- Defined in:
- lib/typed_fields.rb
Instance Method Summary collapse
Instance Method Details
#initialize_fields(params) ⇒ Object
111 112 113 114 115 116 117 |
# File 'lib/typed_fields.rb', line 111 def initialize_fields params symbolized_params = symbolize_hash params self.class.saved_type_info.each do |type_info| value = value_for symbolized_params, type_info set_value type_info.field_name, value end end |