From d3cef824018a79ba383deab85e09c31d2673d2c3 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 9 Feb 2026 12:05:32 +0100 Subject: [PATCH] Refactor `store_current_location` `before_action` in `OAuth::AuthorizationsController` (#37779) --- app/controllers/oauth/authorizations_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/oauth/authorizations_controller.rb b/app/controllers/oauth/authorizations_controller.rb index aa8f131d68..75f0b42e83 100644 --- a/app/controllers/oauth/authorizations_controller.rb +++ b/app/controllers/oauth/authorizations_controller.rb @@ -1,10 +1,7 @@ # frozen_string_literal: true class OAuth::AuthorizationsController < Doorkeeper::AuthorizationsController - skip_before_action :authenticate_resource_owner! - - before_action :store_current_location - before_action :authenticate_resource_owner! + prepend_before_action :store_current_location layout 'modal'