Module: Shoppy::ApplicationHelper

Defined in:
app/helpers/shoppy/application_helper.rb

Class Method Summary collapse

Class Method Details

.is_product_page(controller) ⇒ Object



9
10
11
12
13
14
15
16
# File 'app/helpers/shoppy/application_helper.rb', line 9

def self.is_product_page(controller)
  case controller
  when "manufacturers", "brands", "products", "categories", "options", "reviews"
    return true
  else
    return false
  end
end

.testObject



5
6
7
# File 'app/helpers/shoppy/application_helper.rb', line 5

def self.test
  return "ok!"
end