Module: ProductHelpers

Defined in:
lib/product_helpers.rb

Class Method Summary collapse

Class Method Details

.single_template(name) ⇒ Object


2
3
4
5
6
7
8
9
10
# File 'lib/product_helpers.rb', line 2

def self.single_template(name)
  {
    name: name,
    selection_behaviour: 'SingleProduct',
    products: {
      nil => name
    }
  }
end