Sha256: 8f152636c7154bc50943d4c4575a95fbdcc0661781d5e1ae7d54dcd3bba18dee

Contents?: true

Size: 530 Bytes

Versions: 24

Compression:

Stored size: 530 Bytes

Contents

module Spree
  class TaxonsController < BaseController
    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))
      @products = @searcher.retrieve_products

      respond_with(@taxon)
    end

    private
      def accurate_title
        @taxon ? @taxon.name : super
      end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
spree_core-1.1.6 app/controllers/spree/taxons_controller.rb
spree_core-1.1.5 app/controllers/spree/taxons_controller.rb
spree_core-1.0.7 app/controllers/spree/taxons_controller.rb
spree_core-1.1.4 app/controllers/spree/taxons_controller.rb
spree_core-1.2.0 app/controllers/spree/taxons_controller.rb
spree_core-1.2.0.rc2 app/controllers/spree/taxons_controller.rb
spree_core-1.2.0.rc1 app/controllers/spree/taxons_controller.rb
spree_core-1.1.3 app/controllers/spree/taxons_controller.rb
spree_core-1.0.6 app/controllers/spree/taxons_controller.rb
spree_core-1.1.2 app/controllers/spree/taxons_controller.rb
spree_core-1.1.2.rc1 app/controllers/spree/taxons_controller.rb
spree_core-1.1.1 app/controllers/spree/taxons_controller.rb
spree_core-1.1.0 app/controllers/spree/taxons_controller.rb
spree_core-1.0.4 app/controllers/spree/taxons_controller.rb
spree_core-1.1.0.rc2 app/controllers/spree/taxons_controller.rb
spree_core-1.1.0.rc1 app/controllers/spree/taxons_controller.rb
spree_core-1.0.3 app/controllers/spree/taxons_controller.rb
spree_core-1.0.2 app/controllers/spree/taxons_controller.rb
spree_core-1.0.1 app/controllers/spree/taxons_controller.rb
spree_core-1.0.0 app/controllers/spree/taxons_controller.rb