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

use read_attribute_for_serialization to serialize ids #223

Merged
merged 1 commit into from
Mar 8, 2013

Conversation

tchak
Copy link
Contributor

@tchak tchak commented Mar 7, 2013

  • in order to allow some optimisation in simple cases, we call read_attribute_for_serialization on parent with association_id name

This is an alternative to #221 with hooks to allow for optimized AR calls.

@steveklabnik
Copy link
Contributor

How does everyone who had a problem with #221 feel about this?

* in order to allow some optimisation in simple cases, we call `read_attribute_for_serialization` on parent with association_id name
@nragaz
Copy link
Contributor

nragaz commented Mar 8, 2013

@tchak @steveklabnik That looks ok to me.

steveklabnik added a commit that referenced this pull request Mar 8, 2013
use `read_attribute_for_serialization` to serialize ids
@steveklabnik steveklabnik merged commit f4916f1 into rails-api:master Mar 8, 2013
@steveklabnik
Copy link
Contributor

Thank you!

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.

3 participants