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

Simplify ActiveRecord::Result#hash_rows #51752

Merged
merged 1 commit into from May 7, 2024

Conversation

casperisfine
Copy link
Contributor

Last big refactor was in #37614. Somewhat extracted from #51744.

The concern about columns with the same name didn't make much sense to me because in both code paths, the last one wins, so we can simplify the whole methods.

Additionally by implementing columns_index, we have a decent template always available.

Last big refactor was in rails#37614.
Somewhat extracted from rails#51744.

The concern about columns with the same name didn't make much sense
to me because in both code paths, the last one wins, so we can simplify
the whole methods.

Additionally by implementing `columns_index`, we have a decent template
always available.
@byroot byroot merged commit bac70c3 into rails:main May 7, 2024
4 checks passed
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.

None yet

2 participants