Module: Para::Helpers::AttributesMappings
- Included in:
- Admin::ResourcesController, AttributeField::NestedManyField, AttributeField::NestedOneField
- Defined in:
- lib/para/helpers/attributes_mappings.rb
Instance Method Summary collapse
Instance Method Details
#attributes_mappings_for(params) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/para/helpers/attributes_mappings.rb', line 4 def attributes_mappings_for(params) if (data = params.delete('_attributes_mappings')) JSON.parse(data) else {} end end |