Skip to content

Commit 03c6894

Browse files
committed
add warning message that config.use_redirect_back_or_to_by_rails = true will become the default
1 parent 8e35686 commit 03c6894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sorcery/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def redirect_back_or_to(...)
100100
if Config.use_redirect_back_or_to_by_rails
101101
super
102102
else
103-
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`.')
103+
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.')
104104
redirect_to_before_login_path(...)
105105
end
106106
end

0 commit comments

Comments
 (0)