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

Dunderscore mixed in ivar names to ensure no clashes with user-set vars #159

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

timriley
Copy link
Member

We saw a clash in a dry-system provider, which includes Dry::Configurable, in which user-supplied code could set a @config ivar which suddenly magically became accessible via the #config method (instead of the actual dry-configurable config).

@timriley timriley requested a review from solnic as a code owner November 15, 2022 11:57
@timriley timriley changed the title Prefix mixed in ivars to ensure no clashes Dunderscore mixed in ivar names to ensure no clashes with user-set vars Nov 15, 2022
@timriley
Copy link
Member Author

Copy link
Member

@flash-gordon flash-gordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@timriley timriley merged commit 48e3430 into main Nov 16, 2022
@timriley timriley deleted the prefix-ivars branch November 16, 2022 10:45
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.

4 participants