-
Notifications
You must be signed in to change notification settings - Fork 231
Add an option 'use_redirect_back_or_to_by_rails' to avoid definition conflicts of redirect_back_or_to
#373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
willnet
merged 13 commits into
Sorcery:master
from
atolix:rails-7-redirect-back-or-to-fix
Oct 19, 2025
+106
−21
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
05e2436
Add an option 'use_redirect_back_or_to_by_rails' to avoid definition …
atolix 4b8eb45
add warning message that config.use_redirect_back_or_to_by_rails = tr…
atolix ab4f386
add example 'when Rails::VERSION::MAJOR < 7'
atolix 245aef6
Update comment in initializer to use `redirect_to_before_login_path`
atolix 8e8c0a4
fixed tests to use `redirect_to_before_login_path`
atolix 187a4f8
Delete unnecessary Rails:::Version < 7 test
atolix 1514bc6
Use ActiveSupport::Deprecation.warn instead of Ruby's warn for deprec…
atolix 6e6a2e0
Replace ActiveSupport::Deprecation.warn with ActiveSupport.deprecator…
atolix 26aed80
Use a dedicated Sorcery deprecator instance instead of ActiveSupport.…
atolix 8544109
rubocop:disable RSpec/AnyInstance
atolix eab0a74
add deprecators inside `sorcery/engine.rb`
atolix 5d59de5
Move deprecator initialization into sorcery.rb
atolix 1c92b27
add deprecation warning test
atolix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| require 'sorcery/version' | ||
| require 'sorcery/deprecator' | ||
|
|
||
| module Sorcery | ||
| require 'sorcery/model' | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brendon marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| module Sorcery | ||
| def self.deprecator | ||
| @deprecator ||= ActiveSupport::Deprecation.new(nil, 'Sorcery') | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.