Class: Spree::TaxonsController

Inherits:
StoreController show all
Defined in:
app/controllers/spree/taxons_controller.rb

Instance Method Summary collapse

Methods inherited from StoreController

#unauthorized

Methods included from Core::ControllerHelpers::Order

#after_save_new_order, #associate_user, #before_save_new_order, #current_order, included, #set_current_order

Methods included from Core::ControllerHelpers::Common

included

Methods included from Core::ControllerHelpers::Auth

#current_ability, included, #redirect_back_or_default, #store_location, #try_spree_current_user, #unauthorized

Instance Method Details

#showObject



8
9
10
11
12
13
14
15
16
17
18
# File 'app/controllers/spree/taxons_controller.rb', line 8

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