Module: Decidim::CustomUserFields::FormsDefinition
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/decidim/custom_user_fields/overrides/form_definition.rb
Overview
Extra user fields definitions for forms
Instance Method Summary collapse
Instance Method Details
#map_model(model) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/decidim/custom_user_fields/overrides/form_definition.rb', line 18 def map_model(model) extended_data = model.extended_data.with_indifferent_access Decidim::CustomUserFields.custom_fields.each do |field_def| field_def.map_model(self, extended_data) end end |