Class: Sprangular::TaxonsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/sprangular/taxons_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#invalid_resource!, #not_found, #unauthorized

Instance Method Details

#showObject



2
3
4
5
6
# File 'app/controllers/sprangular/taxons_controller.rb', line 2

def show
  @taxon = Spree::Taxon.where(permalink: params[:permalink]).first!

  render json: @taxon, serializer: Sprangular::TaxonSerializer
end