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
Methods inherited from BaseController
#map_nested_attributes_keys, #permitted_line_item_attributes
Methods included from ControllerSetup
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/spree/api/promotions_controller.rb', line 7 def show if @promotion respond_with(@promotion, default_template: :show) else raise ActiveRecord::RecordNotFound end end |