Skip to content
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

Fix: error when referencing thread attribute after Rails upgrade #39

Merged
merged 2 commits into from
Dec 16, 2021

Conversation

jorgemanrubia
Copy link
Member

Thread attributes will now declare a class variable on the fly when referenced. This causes a problem if the class is frozen.

The patch is just referencing the attribute so that it gets materialized before having the class frozen.

CC @basecamp/sip

After Rails upgrade, this relies on a class variable. We can't define class variables
once a class has been frozen, so we do that before.
@jorgemanrubia jorgemanrubia merged commit 6e19d39 into master Dec 16, 2021
@jorgemanrubia jorgemanrubia deleted the error-thread-attribute branch December 16, 2021 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant