Class: Spree::TaxonsController
- Inherits:
-
StoreController
- Object
- BaseController
- StoreController
- Spree::TaxonsController
- Includes:
- FrontendHelper
- Defined in:
- app/controllers/spree/taxons_controller.rb
Instance Method Summary collapse
Methods included from FrontendHelper
#asset_exists?, #available_option_types, #available_option_types_cache_key, #body_class, #carousel_image_source_set, #checkout_progress, #class_for, #filtering_params, #filtering_params_cache_key, #flash_messages, #icon, #image_source_set, #lazy_image, #link_to_cart, #permitted_product_params, #plp_and_carousel_image, #price_filter_values, #set_image_alt, #spree_breadcrumbs, #spree_social_link, #static_filters, #taxons_tree
Methods inherited from StoreController
#account_link, #api_tokens, #cart_link, #ensure_cart, #forbidden, #unauthorized
Instance Method Details
#product_carousel ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'app/controllers/spree/taxons_controller.rb', line 16 def product_carousel if stale?(etag: carousel_etag, last_modified: last_modified, public: true) load_products if @products.any? render template: 'spree/taxons/product_carousel', layout: false else head :no_content end end end |
#show ⇒ Object
10 11 12 13 14 |
# File 'app/controllers/spree/taxons_controller.rb', line 10 def show if stale?(etag: etag, last_modified: last_modified, public: true) load_products end end |