Use user_registration_path instead of hardcoded /accounts for deployments into sub-directories...
This commit is contained in:
parent
18968a05b1
commit
9d72775c29
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
if not session[:return_to].start_with?('/accounts')
|
if not session[:return_to].start_with?(user_registration_path)
|
||||||
logger.debug "Returning to #{session[:return_to]}"
|
logger.debug "Returning to #{session[:return_to]}"
|
||||||
session[:return_to]
|
session[:return_to]
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue