Skip to content

Commit

Permalink
issue 4356 adds is_navigational_format? check to after_sign_up_path_f…
Browse files Browse the repository at this point in the history
…or (#4833)
  • Loading branch information
iorme1 authored and tegon committed Aug 2, 2018
1 parent e4dd150 commit acc45c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/devise/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def sign_up(resource_name, resource)
# 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
Expand Down

0 comments on commit acc45c5

Please sign in to comment.