Fix layout selection to detect OAuth correctly

This commit is contained in:
Tom Hughes 2012-03-10 12:46:10 +00:00
parent 5c74a6517c
commit a87540a5dd

View file

@ -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