Sha256: 9c21ce16b2c51d447ec30930ddceea6a6b106d2e83a1aa8c186692053444c894
Contents?: true
Size: 463 Bytes
Versions: 24
Compression:
Stored size: 463 Bytes
Contents
module Admin::ProductsHelper def option_type_select(so) select(:new_variant, so.option_type.presentation, so.option_type.option_values.collect {|ov| [ ov.presentation, ov.id ] }) end def pv_tag_id(product_value) "product-property-value-#{product_value.id}" end def exclusive_properties(product, properties) product.property_values.each do |pv| properties.delete(pv.property) end properties end end
Version data entries
24 entries across 24 versions & 3 rubygems