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



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

def show
  authorize! :show, @promotion
  respond_with(@promotion, default_template: :show)
end