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

find via association does not use the identity map #319

Closed
ghost opened this issue Sep 27, 2011 · 2 comments
Closed

find via association does not use the identity map #319

ghost opened this issue Sep 27, 2011 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 27, 2011

documents that are loaded via "belongs_to" associations do not seem to get saved in their model's identity map. my guess is that this is because "find" is unimplemented in the identity map plugin.

@jnunemaker
Copy link
Contributor

Can you put a small script together showing what you mean?

Belongs to proxy uses find_by_id which uses find_one, which is
over-ridden in the identity map.

On Tue, Sep 27, 2011 at 10:55 AM, Eric Buth
reply@reply.github.com
wrote:

documents that are loaded via "belongs_to" associations do not seem to get saved in their model's identity map. my guess is that this is because "find" is unimplemented in the identity map plugin.

Reply to this email directly or view it on GitHub:
#319

@ghost
Copy link
Author

ghost commented Sep 27, 2011

i think this is my error; thanks for responding.

@ghost ghost closed this as completed Sep 27, 2011
This issue was closed.
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

No branches or pull requests

1 participant