Sha256: b8d75ffb7463b54ccc3d8e855d2ca064e5a28d6eebf18fd7400dee2f5b2654b1
Contents?: true
Size: 550 Bytes
Versions: 6
Compression:
Stored size: 550 Bytes
Contents
module Spree class TaxonsController < Spree::StoreController helper 'spree/products' respond_to :html def show @taxon = Spree::Taxon.find_by!(permalink: params[:id]) return unless @taxon @searcher = build_searcher(params.merge(taxon: @taxon.id, include_images: true)) @products = @searcher.retrieve_products @taxonomies = Spree::Taxonomy.includes(root: :children) end private def accurate_title if @taxon @taxon.seo_title else super end end end end
Version data entries
6 entries across 6 versions & 1 rubygems