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

[Fix] will send query even if has one association is cached #27

Merged
merged 9 commits into from May 14, 2018

Conversation

khiav223577
Copy link
Owner

@khiav223577 khiav223577 commented May 13, 2018

For example:

user1 = User.first
user2 = User.first

user1.cacher.profile
# => SELECT  `profiles`.* FROM `profiles` WHERE `profiles`.`user_id` = 1

user1.cacher.profile
# => SELECT  `profiles`.* FROM `profiles` WHERE `profiles`.`user_id` = 1

@khiav223577 khiav223577 merged commit 6d2e8ba into master May 14, 2018
@khiav223577 khiav223577 deleted the fix/extra_query_for_has_one_association branch May 14, 2018 01:41
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

1 participant