Sha256: 64162dbc30435480b7334bda0dcba6b1a4b581b4e6b8c21d6e213d24419e20a0
Contents?: true
Size: 606 Bytes
Versions: 21
Compression:
Stored size: 606 Bytes
Contents
module Spree class TaxonsController < Spree::StoreController rescue_from ActiveRecord::RecordNotFound, with: :render_404 helper 'spree/products' respond_to :html def show @taxon = 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
21 entries across 21 versions & 1 rubygems