Sha256: a59dbe78c006a0ceba7557c38f60c570d7b0a01317871e506762eee73ea239be
Contents?: true
Size: 602 Bytes
Versions: 15
Compression:
Stored size: 602 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.friendly.find(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
15 entries across 15 versions & 1 rubygems