Class: Stall::ProductCategoriesController

Inherits:
ApplicationController show all
Includes:
ProductsBreadcrumbs, ProductsSearch
Defined in:
app/controllers/stall/product_categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



6
7
8
9
10
11
# File 'app/controllers/stall/product_categories_controller.rb', line 6

def show
  @product_category = ProductCategory.friendly.find(params[:id])
  search_products_among(@product_category.all_child_products)

  add_product_category_breadcrumbs(@product_category)
end