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

Type cast pluck values for table name unqalified column in joins tables #39292

Merged

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented May 14, 2020

Follow up to #39264, and fixes demonstrated case in #39290.

If the column has no type caster and the model don't know the attribute,
let's will attempt to lookup cast type from join dependency tree.

cc @eileencodes

…bles

Follow up to rails#39264, and fixes demonstrated case in rails#39290.

If the column has no type caster and the model don't know the attribute,
let's will attempt to lookup cast type from join dependency tree.
Copy link
Member

@eileencodes eileencodes left a comment

Choose a reason for hiding this comment

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

🎉 💖

@kamipo kamipo merged commit 31062c9 into rails:master May 14, 2020
@kamipo kamipo deleted the type_cast_pluck_without_table_name_qualified branch May 14, 2020 21:07
kamipo added a commit to kamipo/rails that referenced this pull request May 14, 2020
kamipo added a commit to kamipo/rails that referenced this pull request May 28, 2020
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