File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1113
1113
Note that you do not need to explicitly specify references in the
1114
1114
following cases, as they can be automatically inferred:
1115
1115
1116
- Post.where(comments: { name: 'foo' })
1117
- Post.where('comments.name' => 'foo')
1118
- Post.order('comments.name')
1116
+ Post.includes(:comments). where(comments: { name: 'foo' })
1117
+ Post.includes(:comments). where('comments.name' => 'foo')
1118
+ Post.includes(:comments). order('comments.name')
1119
1119
1120
- You also do not need to worry about this unless you are doing eager
1120
+ You do not need to worry about this unless you are doing eager
1121
1121
loading. Basically, don't worry unless you see a deprecation warning
1122
1122
or (in future releases) an SQL error due to a missing JOIN.
1123
1123
You can’t perform that action at this time.
0 commit comments