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

Implement HashWithIndifferentAccess#to_proc #49475

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

fatkodima
Copy link
Member

Previously, calling #to_proc on HashWithIndifferentAccess object used inherited #to_proc method from the Hash class, which was not able to access values using indifferent keys.

Fixes #48770.

Previously, calling `#to_proc` on `HashWithIndifferentAccess` object used inherited `#to_proc`
method from the `Hash` class, which was not able to access values using indifferent keys.

Fixes rails#48770.
@fatkodima
Copy link
Member Author

Rubocop violation is from another PR and is already fixed on main.

@rafaelfranca rafaelfranca merged commit d21f4e6 into rails:main Oct 4, 2023
3 of 4 checks passed
@fatkodima fatkodima deleted the hwia-to_proc branch October 4, 2023 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HashWithIndifferentAccess#to_proc does not map keys to values as Hash#to_proc does
2 participants