mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
issue 4356 adds is_navigational_format? check to after_sign_up_path_for (#4833)
This commit is contained in:
committed by
Leonardo Tegon
parent
e4dd1509c4
commit
acc45c5a44
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user