mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
issue 4356 adds is_navigational_format? check to after_sign_up_path_for (#4833)
This commit is contained in:
parent
e4dd1509c4
commit
acc45c5a44
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class Devise::RegistrationsController < DeviseController
|
|||
# The path used after sign up. You need to overwrite this method
|
||||
# in your own RegistrationsController.
|
||||
def after_sign_up_path_for(resource)
|
||||
after_sign_in_path_for(resource)
|
||||
after_sign_in_path_for(resource) if is_navigational_format?
|
||||
end
|
||||
|
||||
# The path used after sign up for inactive accounts. You need to overwrite
|
||||
|
|
Loading…
Reference in a new issue