Sha256: a04b13ea8613e23049ee3df6059d1a6deb0300c56c119432d5faf80a9654a153
Contents?: true
Size: 614 Bytes
Versions: 7
Compression:
Stored size: 614 Bytes
Contents
module Spree class TaxonsController < Spree::StoreController rescue_from ActiveRecord::RecordNotFound, with: :render_404 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
7 entries across 7 versions & 1 rubygems