-
Notifications
You must be signed in to change notification settings - Fork 899
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
Drop RequestStore
in favour of ActiveSupport::CurrentAttributes
#1447
base: master
Are you sure you want to change the base?
Drop RequestStore
in favour of ActiveSupport::CurrentAttributes
#1447
Conversation
9b758ad
to
1f76b9f
Compare
@@ -5,8 +5,6 @@ | |||
RSpec.describe WidgetsController, type: :controller, versioning: true do | |||
before { request.env["REMOTE_ADDR"] = "127.0.0.1" } | |||
|
|||
after { RequestStore.store[:paper_trail] = nil } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current attributes are automatically reset before each request so this is no longer necessary for the new implementation.
1f76b9f
to
d363b54
Compare
9d977a8
to
8c58e67
Compare
CI is failing cause of reduced line coverage, but all my changes except for the new |
8c58e67
to
c43279b
Compare
This PR has been automatically marked as stale due to inactivity. |
@jaredbeck would you mind taking a look at this? 🙏 |
Re-opening because it was closed as stale but I do think its a good idea |
Thank you for your contribution!
Check the following boxes:
master
(if not - rebase it).code introduces user-observable changes.
and description in grammatically correct, complete sentences.
Fixes #1444
I wonder if there are any performance benefits here, I'm happy to run some benchmarks if it's a valid concern.