Skip to content

Commit

Permalink
Remove order in before_action callback
Browse files Browse the repository at this point in the history
The order method was remove a few days ago. In the latest version of Rails (v7.1) this leads to a warning if this option is enabled during development.
  • Loading branch information
kulturbande committed Mar 9, 2024
1 parent 7a7c607 commit 5d82f67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/alchemy/admin/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class PagesController < ResourcesController

helper "alchemy/pages"

before_action :load_resource, except: [:index, :flush, :new, :order, :create, :copy_language_tree, :link]
before_action :load_resource, except: [:index, :flush, :new, :create, :copy_language_tree, :link]

authorize_resource class: Alchemy::Page, except: [:index, :tree]

before_action only: [:index, :tree, :flush, :new, :order, :create, :copy_language_tree] do
before_action only: [:index, :tree, :flush, :new, :create, :copy_language_tree] do
authorize! :index, :alchemy_admin_pages
end

Expand All @@ -21,7 +21,7 @@ class PagesController < ResourcesController
except: [:show]

before_action :set_root_page,
only: [:index, :show, :order]
only: [:index, :show]

before_action :set_preview_mode, only: [:show]

Expand Down

0 comments on commit 5d82f67

Please sign in to comment.