Sha256: 8015f225f7447ad009537a33966aed57a1f76af052b305aa3a6b82ba816e7577
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
module Admin::ProductPropertiesHelper # Generates the appropriate field name for attribute_fu. Normally attribute_fu handles this but we've got a # special case where we need text_field_with_autocomplete and we have to recreate attribute_fu's naming # scheme manually. def property_fu_name(product_property) if product_property.new_record? "product[product_property_attributes][new][-1][property_name]" else "product[product_property_attributes][#{product_property.id}][property_name]" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-0.4.0 | app/helpers/admin/product_properties_helper.rb |
spree-0.4.1 | app/helpers/admin/product_properties_helper.rb |