Skip to content

Commit

Permalink
Remove unused load_promotion_category method and callback
Browse files Browse the repository at this point in the history
Removed the load_promotion_category method and its corresponding 
before_action for the non-existent :move action.
  • Loading branch information
rainerdema committed Dec 22, 2023
1 parent de02e88 commit 7a3b599
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand 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

0 comments on commit 7a3b599

Please sign in to comment.