app/controllers/spree/api/promotions_controller.rb in solidus_api-1.3.2 vs app/controllers/spree/api/promotions_controller.rb in solidus_api-1.4.0.beta1
- old
+ new
@@ -1,9 +1,9 @@
module Spree
module Api
class PromotionsController < Spree::Api::BaseController
- before_filter :requires_admin
- before_filter :load_promotion
+ before_action :requires_admin
+ before_action :load_promotion
def show
if @promotion
respond_with(@promotion, default_template: :show)
else