Sha256: 069047cbd16593fb32a8b1e3c637d8f2057f30248f6b268df7037b6fd7b9da11
Contents?: true
Size: 563 Bytes
Versions: 54
Compression:
Stored size: 563 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 @taxon.try(:seo_title) || super end end end
Version data entries
54 entries across 54 versions & 2 rubygems