Sha256: 0a05d95b501e99e06a279f2ec4d58e45ffd88cb8405542a9d0628b64a3992c67
Contents?: true
Size: 610 Bytes
Versions: 53
Compression:
Stored size: 610 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
53 entries across 53 versions & 2 rubygems