Update AR Changelog with correct example using includes

These queries don't seem to work without the includes clause. [ci skip]
This commit is contained in:
Caike Souza 2012-12-07 17:03:00 -05:00 committed by Carlos Antonio da Silva
parent 69163ccae6
commit ad59260f70

@ -1113,11 +1113,11 @@
Note that you do not need to explicitly specify references in the Note that you do not need to explicitly specify references in the
following cases, as they can be automatically inferred: following cases, as they can be automatically inferred:
Post.where(comments: { name: 'foo' }) Post.includes(:comments).where(comments: { name: 'foo' })
Post.where('comments.name' => 'foo') Post.includes(:comments).where('comments.name' => 'foo')
Post.order('comments.name') Post.includes(:comments).order('comments.name')
You also do not need to worry about this unless you are doing eager You do not need to worry about this unless you are doing eager
loading. Basically, don't worry unless you see a deprecation warning loading. Basically, don't worry unless you see a deprecation warning
or (in future releases) an SQL error due to a missing JOIN. or (in future releases) an SQL error due to a missing JOIN.