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