We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
load_promotion_category
1 parent 178d3be commit 4a9de21Copy full SHA for 4a9de21
admin/app/controllers/solidus_admin/promotion_categories_controller.rb
@@ -4,8 +4,6 @@ module SolidusAdmin
4
class PromotionCategoriesController < SolidusAdmin::BaseController
5
include SolidusAdmin::ControllerHelpers::Search
6
7
- before_action :load_promotion_category, only: [:move]
8
-
9
def index
10
promotion_categories = apply_search_to(
11
Spree::PromotionCategory.all,
@@ -27,12 +25,5 @@ def destroy
27
25
flash[:notice] = t('.success')
28
26
redirect_back_or_to promotion_categories_path, status: :see_other
29
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
37
38
0 commit comments