Module: Comable::SkuChoice
Overview
SKU選択肢 商品と注文明細にSKU選択肢としての機能を付与するためのモジュール
Instance Method Summary collapse
Instance Method Details
#name_with_sku ⇒ Object
7 8 9 10 |
# File 'app/models/concerns/comable/sku_choice.rb', line 7 def name_with_sku return name unless sku? name + "(#{sku_name})" end |
#sku_name ⇒ Object
12 13 14 15 16 17 |
# File 'app/models/concerns/comable/sku_choice.rb', line 12 def sku_name return unless sku? sku_name = sku_h_choice_name sku_name += '/' + sku_v_choice_name if sku_v_choice_name.present? sku_name end |