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
1 changed files with 1 additions and 1 deletions

View File

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