Module: Stall::ProductsHelper

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

Instance Method Summary collapse

Instance Method Details

#product_path(*args) ⇒ Object



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

def product_path(*args)
  if @curated_product_list
    curated_product_list_product_path(@curated_product_list, *args)
  elsif @manufacturer
    manufacturer_product_path(@manufacturer, *args)
  else
    Rails.application.routes.url_helpers.product_path(*args)
  end
end