Class: Stall::ProductsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Stall::ProductsController
- Includes:
- ProductsBreadcrumbs, ProductsSearch
- Defined in:
- app/controllers/stall/products_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/stall/products_controller.rb', line 6 def index search_products_among(Product.all) :products end |
#show ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/controllers/stall/products_controller.rb', line 12 def show @product = Product.friendly.includes( variants: [variant_property_values: [property_value: :property]] ).find(params[:id]) end |