Sha256: 1a4b4ccc1185aabc83a57b1e69b392e29165847c3ba70dde081db41a65f80046

Contents?: true

Size: 476 Bytes

Versions: 23

Compression:

Stored size: 476 Bytes

Contents

class TaxonsController < Spree::BaseController
  rescue_from ActiveRecord::RecordNotFound, :with => :render_404
  helper :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

Version data entries

23 entries across 23 versions & 6 rubygems

Version Path
spree_core-0.70.7 app/controllers/taxons_controller.rb
spree_core-0.70.6 app/controllers/taxons_controller.rb
apispree_core-0.0.0 app/controllers/taxons_controller.rb
My-Commerce_core-1.1.0 app/controllers/taxons_controller.rb
My-Commerce_core-1.0.0 app/controllers/taxons_controller.rb
MyCommerceapi-1.0.0 core/app/controllers/taxons_controller.rb
MyCommerce-0.0.3 core/app/controllers/taxons_controller.rb
rfcommerce_core-0.0.3 app/controllers/taxons_controller.rb
spree_core-0.60.6 app/controllers/taxons_controller.rb
spree_core-0.70.5 app/controllers/taxons_controller.rb
spree_core-0.70.4 app/controllers/taxons_controller.rb
spree_core-0.60.5 app/controllers/taxons_controller.rb
spree_core-0.70.3 app/controllers/taxons_controller.rb
spree_core-0.70.2 app/controllers/taxons_controller.rb
spree_core-0.60.4 app/controllers/taxons_controller.rb
spree_core-0.60.3 app/controllers/taxons_controller.rb
spree_core-0.70.1 app/controllers/taxons_controller.rb
spree_core-0.70.0 app/controllers/taxons_controller.rb
spree_core-0.60.2 app/controllers/taxons_controller.rb
spree_core-0.70.0.rc2 app/controllers/taxons_controller.rb