From a87540a5ddb4d4f7863472f5b2bb1f8d2f8b62c4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 10 Mar 2012 12:46:10 +0000 Subject: [PATCH 1/1] Fix layout selection to detect OAuth correctly --- app/controllers/user_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index d7b73c14e..0aeab63b3 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -718,7 +718,7 @@ private # Choose the layout to use. See # https://rails.lighthouseapp.com/projects/8994/tickets/5371-layout-with-onlyexcept-options-makes-other-actions-render-without-layouts def choose_layout - oauth_url = url_for(:controller => :oauth, :action => :oauthorize, :only_path => true) + oauth_url = url_for(:controller => :oauth, :action => :authorize, :only_path => true) if [ 'api_details' ].include? action_name nil -- 2.43.2