From 5d82f67bd1628c253cf85cf7716d64b58a1894b3 Mon Sep 17 00:00:00 2001 From: Sascha Karnatz <68833+kulturbande@users.noreply.github.com> Date: Sat, 9 Mar 2024 11:43:12 +0100 Subject: [PATCH] Remove order in before_action callback 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. --- app/controllers/alchemy/admin/pages_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/alchemy/admin/pages_controller.rb b/app/controllers/alchemy/admin/pages_controller.rb index cf35b2365a..7474f068ea 100644 --- a/app/controllers/alchemy/admin/pages_controller.rb +++ b/app/controllers/alchemy/admin/pages_controller.rb @@ -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 @@ -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]