Only show login/signup in slim mode when used from oauth
This commit is contained in:
parent
98f34e4534
commit
097fb390b8
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ private
|
|||
def choose_layout
|
||||
if [ 'api_details' ].include? action_name
|
||||
nil
|
||||
elsif [ 'login', 'new', 'terms'].include? action_name
|
||||
elsif params[:referer] == url_for(:controller => :oauth, :action => :oauthorize, :only_path => true)
|
||||
'slim'
|
||||
else
|
||||
'site'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue