Module: Crm::AssortmentInstructionsHelper
- Defined in:
- app/helpers/crm/assortment_instructions_helper.rb
Overview
View helper: assortment instructions.
Instance Method Summary collapse
-
#setup_assortment_instruction(assortment_instruction) ⇒ AssortmentInstruction
Prepares an assortment instruction for the form by ensuring it has at least one product filter to render.
Instance Method Details
#setup_assortment_instruction(assortment_instruction) ⇒ AssortmentInstruction
Prepares an assortment instruction for the form by ensuring it has at
least one product filter to render.
9 10 11 12 13 |
# File 'app/helpers/crm/assortment_instructions_helper.rb', line 9 def setup_assortment_instruction(assortment_instruction) assortment_instruction.tap do |sn| sn.product_filters.build if sn.product_filters.empty? end end |