-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto include through associations when 'middle' association was loade…
…d but not modified (#138) (#145) When an association goes through another association, e.g. `has_many :tags, through: :post_tags`, loading the `post_tags` association was enough, to not auto include the `tags` association when it is first accessed. This is correct for when the `post_tags` association was modified and auto include could lead to weird results. When nothing was modified it is totally fine to auto include the through association. Code author: Felix Tscheulin https://github.com/Flixt
- Loading branch information
1 parent
87e0ab7
commit 1595eb6
Showing
2 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters