Module: Admin::ProductsHelper

Defined in:
app/helpers/admin/products_helper.rb

Instance Method Summary collapse

Instance Method Details

#option_type_select(so) ⇒ Object



2
3
4
5
6
# File 'app/helpers/admin/products_helper.rb', line 2

def option_type_select(so)
  select(:new_variant,
         so.option_type.presentation,
         so.option_type.option_values.collect {|ov| [ ov.presentation, ov.id ] })
end

#pv_tag_id(product_value) ⇒ Object



8
9
10
# File 'app/helpers/admin/products_helper.rb', line 8

def pv_tag_id(product_value)
  "product-property-value-#{product_value.id}"
end