Sha256: 39778038d0d73f11a4edd9c664c167c70383bda405c79046d708e1f5a3115546

Contents?: true

Size: 306 Bytes

Versions: 14

Compression:

Stored size: 306 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
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
spree-0.11.4 app/helpers/admin/products_helper.rb
spree-0.11.3 app/helpers/admin/products_helper.rb
spree_core-0.30.2 app/helpers/admin/products_helper.rb
spree_core-0.40.4 app/helpers/admin/products_helper.rb
spree_core-0.40.3 app/helpers/admin/products_helper.rb
spree_core-0.40.2 app/helpers/admin/products_helper.rb
spree_core-0.40.1 app/helpers/admin/products_helper.rb
spree_core-0.40.0 app/helpers/admin/products_helper.rb
spree_core-0.30.1 app/helpers/admin/products_helper.rb
spree_core-0.30.0 app/helpers/admin/products_helper.rb
spree-0.11.2 app/helpers/admin/products_helper.rb
spree-0.11.1 app/helpers/admin/products_helper.rb
spree_core-0.30.0.beta1 app/helpers/admin/products_helper.rb
spree-0.11.0 app/helpers/admin/products_helper.rb