Class: Workarea::Api::Storefront::TaxonsController
- Inherits:
-
ApplicationController
- Object
- Workarea::ApplicationController
- ApplicationController
- Workarea::Api::Storefront::TaxonsController
- Defined in:
- app/controllers/workarea/api/storefront/taxons_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#assert_current_metrics_id, #cache_page, #skip_session
Methods included from Authentication
#authentication?, #current_user, find_user
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/workarea/api/storefront/taxons_controller.rb', line 7 def show @taxon = Navigation::Taxon.find(params[:id]) unless @taxon.active? raise Mongoid::Errors::DocumentNotFound.new( Navigation::Taxon, id: params[:id] ) end end |