Class: Spree::Api::V1::PromotionsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/spree/api/v1/promotions_controller.rb

Instance Attribute Summary

Attributes inherited from BaseController

#current_api_user

Instance Method Summary collapse

Methods inherited from BaseController

#content_type, #permitted_line_item_attributes

Methods included from ControllerSetup

included

Instance Method Details

#showObject



8
9
10
11
12
13
14
# File 'app/controllers/spree/api/v1/promotions_controller.rb', line 8

def show
  if @promotion
    respond_with(@promotion, default_template: :show)
  else
    raise ActiveRecord::RecordNotFound
  end
end