diff --git a/admin/app/controllers/solidus_admin/promotion_categories_controller.rb b/admin/app/controllers/solidus_admin/promotion_categories_controller.rb index e258cc7609b..b7f4f8fdb6c 100644 --- a/admin/app/controllers/solidus_admin/promotion_categories_controller.rb +++ b/admin/app/controllers/solidus_admin/promotion_categories_controller.rb @@ -4,8 +4,6 @@ module SolidusAdmin class PromotionCategoriesController < SolidusAdmin::BaseController include SolidusAdmin::ControllerHelpers::Search - before_action :load_promotion_category, only: [:move] - def index promotion_categories = apply_search_to( Spree::PromotionCategory.all, @@ -27,12 +25,5 @@ def destroy flash[:notice] = t('.success') redirect_back_or_to promotion_categories_path, status: :see_other end - - private - - def load_promotion_category - @promotion_category = Spree::PromotionCategory.find(params[:id]) - authorize! action_name, @promotion_category - end end end