Class: Sprangular::TaxonsController
- Inherits:
-
BaseController
- Object
- Spree::BaseController
- BaseController
- Sprangular::TaxonsController
- Defined in:
- app/controllers/sprangular/taxons_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#invalid_resource!, #not_found, #unauthorized
Instance Method Details
#show ⇒ Object
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 |