Skip to content

Commit 4a9de21

Browse files
committed
Remove unused load_promotion_category method and callback
Removed the load_promotion_category method and its corresponding before_action for the non-existent :move action.
1 parent 178d3be commit 4a9de21

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

admin/app/controllers/solidus_admin/promotion_categories_controller.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module SolidusAdmin
44
class PromotionCategoriesController < SolidusAdmin::BaseController
55
include SolidusAdmin::ControllerHelpers::Search
66

7-
before_action :load_promotion_category, only: [:move]
8-
97
def index
108
promotion_categories = apply_search_to(
119
Spree::PromotionCategory.all,
@@ -27,12 +25,5 @@ def destroy
2725
flash[:notice] = t('.success')
2826
redirect_back_or_to promotion_categories_path, status: :see_other
2927
end
30-
31-
private
32-
33-
def load_promotion_category
34-
@promotion_category = Spree::PromotionCategory.find(params[:id])
35-
authorize! action_name, @promotion_category
36-
end
3728
end
3829
end

0 commit comments

Comments
 (0)