Sha256: f718df566dbb12b5cb128c748624ac5af7ec8b4d4b1f824d6a65762d4260b1e1
Contents?: true
Size: 434 Bytes
Versions: 23
Compression:
Stored size: 434 Bytes
Contents
module Admin::ProductGroupsHelper # Allow certain scope attributes to have a custom field type def product_scope_field(product_scope, i) value = (product_scope.arguments || [])[i] name = "product_group[product_scopes_attributes][][arguments][]" helper_method_for_scope = Scopes::Product::ATTRIBUTE_HELPER_METHODS[product_scope.name.to_sym] || :text_field_tag send(helper_method_for_scope, name, value) end end
Version data entries
23 entries across 23 versions & 6 rubygems