Sha256: 0a0e255c825a1dfc863702ee3a6dc26ab03a75e040357e5c0b15feaf0870207c
Contents?: true
Size: 681 Bytes
Versions: 3
Compression:
Stored size: 681 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 = Spree::Config.searcher_class.new(params.merge(:taxon => @taxon.id)) @searcher.current_user = try_spree_current_user @searcher.current_currency = current_currency @products = @searcher.retrieve_products respond_with(@taxon) end private def accurate_title if @taxon @taxon.seo_title else super end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_core-1.3.5 | app/controllers/spree/taxons_controller.rb |
spree_core-1.3.4 | app/controllers/spree/taxons_controller.rb |
spree_core-1.3.3 | app/controllers/spree/taxons_controller.rb |