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

Version Path
kdmny-spree-0.0.1 app/helpers/admin/products_helper.rb
spree-0.10.2 app/helpers/admin/products_helper.rb
spree-0.10.1 app/helpers/admin/products_helper.rb
spree-0.10.0 app/helpers/admin/products_helper.rb
spree-0.10.0.beta app/helpers/admin/products_helper.rb
spree-enriquez-0.9.4 app/helpers/admin/products_helper.rb
spree-0.9.4 app/helpers/admin/products_helper.rb
spree-0.9.3 app/helpers/admin/products_helper.rb
spree-0.9.2 app/helpers/admin/products_helper.rb
spree-0.9.1 app/helpers/admin/products_helper.rb
spree-0.9.0 app/helpers/admin/products_helper.rb
spree-0.8.4 app/helpers/admin/products_helper.rb
spree-0.8.5 app/helpers/admin/products_helper.rb
spree-0.4.0 app/helpers/admin/products_helper.rb
spree-0.4.1 app/helpers/admin/products_helper.rb
spree-0.5.0 app/helpers/admin/products_helper.rb
spree-0.6.0 app/helpers/admin/products_helper.rb
spree-0.5.1 app/helpers/admin/products_helper.rb
spree-0.7.0 app/helpers/admin/products_helper.rb
spree-0.7.1 app/helpers/admin/products_helper.rb