Module: Comable::ProductsHelper

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

Instance Method Summary collapse

Instance Method Details

#sku_table(product, options = nil) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'app/helpers/comable/products_helper.rb', line 3

def sku_table(product, options = nil)
  stocks = product.stocks
  (:table, nil, options) do
    html = ''
    html << build_sku_v_table_header(product, stocks)
    html << build_sku_table_rows(product, stocks)
    html.html_safe
  end
end