aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorCaike Souza <carloshrsouza@gmail.com>2012-12-07 17:03:00 -0500
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-08 08:16:13 -0200
commitad59260f70ece277f24f9a847d6cd3c2ed3bb9b2 (patch)
tree6b8b2144eab69c121e6336915a0dfc104cb31f69 /activerecord/CHANGELOG.md
parent69163ccae6a49c89e1a62ac94b98222651dd5aa8 (diff)
downloadrails-ad59260f70ece277f24f9a847d6cd3c2ed3bb9b2.tar.gz
rails-ad59260f70ece277f24f9a847d6cd3c2ed3bb9b2.tar.bz2
rails-ad59260f70ece277f24f9a847d6cd3c2ed3bb9b2.zip
Update AR Changelog with correct example using includes
These queries don't seem to work without the includes clause. [ci skip]
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 82266fe1d5..0a2e7a127c 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1113,11 +1113,11 @@
Note that you do not need to explicitly specify references in the
following cases, as they can be automatically inferred:
- Post.where(comments: { name: 'foo' })
- Post.where('comments.name' => 'foo')
- Post.order('comments.name')
+ Post.includes(:comments).where(comments: { name: 'foo' })
+ Post.includes(:comments).where('comments.name' => 'foo')
+ 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
or (in future releases) an SQL error due to a missing JOIN.