1
0
Fork 0
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:
Isaac Orme 2018-08-02 07:02:50 -07:00 committed by Leonardo Tegon
parent e4dd1509c4
commit acc45c5a44

View file

@ -112,7 +112,7 @@ class Devise::RegistrationsController < DeviseController
# The path used after sign up. You need to overwrite this method # The path used after sign up. You need to overwrite this method
# in your own RegistrationsController. # in your own RegistrationsController.
def after_sign_up_path_for(resource) def after_sign_up_path_for(resource)
after_sign_in_path_for(resource) after_sign_in_path_for(resource) if is_navigational_format?
end end
# The path used after sign up for inactive accounts. You need to overwrite # The path used after sign up for inactive accounts. You need to overwrite