Class: Spree::Api::PromotionsController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- Spree::Api::PromotionsController
- Defined in:
- app/controllers/spree/api/promotions_controller.rb
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/controllers/spree/api/promotions_controller.rb', line 9 def show if @promotion respond_with(@promotion, default_template: :show) else raise ActiveRecord::RecordNotFound end end |