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

Typecast 'id' attribute in read_attribute when using custom pks #5661

Merged
merged 2 commits into from Mar 30, 2012

Conversation

carlosantoniodasilva
Copy link
Member

Related to this awesome cleanup ❤️.

When using custom primary keys, the id attribute works as an alias to the pk. But in case of read_attribute, when reading the id it was not being typecasted after the change.

Also added a deprecation message to type_cast_code according to the conversation in the same commit.

Thanks!

tenderlove added a commit that referenced this pull request Mar 30, 2012
Typecast 'id' attribute in read_attribute when using custom pks
@tenderlove tenderlove merged commit 130064d into rails:master Mar 30, 2012
@jonleighton
Copy link
Member

Doh, I didn't realise I had broken the build! Thanks for fixing it.

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

3 participants