Skip to content

Commit

Permalink
add warning message that config.use_redirect_back_or_to_by_rails = tr…
Browse files Browse the repository at this point in the history
…ue will become the default
  • Loading branch information
atolix committed May 9, 2024
1 parent e24479e commit 8ebe075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sorcery/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def redirect_back_or_to(...)
if Config.use_redirect_back_or_to_by_rails
super
else
warn('[WARNING] `redirect_back_or_to` overrides the method of the same name defined in Rails 7. If you want to avoid overriding, you can set `config.use_redirect_back_or_to_by_rails = true` and use `redirect_to_before_login_path`.')
warn('[WARNING] `redirect_back_or_to` overrides the method of the same name defined in Rails 7. If you want to avoid overriding, you can set `config.use_redirect_back_or_to_by_rails = true` and use `redirect_to_before_login_path`. In a future version, `config.use_redirect_back_or_to_by_rails = true` will become the default.')
redirect_to_before_login_path(...)
end
end
Expand Down

0 comments on commit 8ebe075

Please sign in to comment.