Class: Spree::Api::PromotionsController

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

Instance Attribute Summary

Attributes inherited from BaseController

#current_api_user

Instance Method Summary collapse

Instance Method Details

#showObject



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