diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-08 08:16:28 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-08 08:16:28 -0200 |
commit | 3f95908c3b3d9f500bb7940d7aed986e7c9de515 (patch) | |
tree | 659f0de58136db3fd0c76a1ba7681c6192ec416e /activerecord | |
parent | 236bed9f1dc08792566d8cbf5e69aa4bd6ed514f (diff) | |
parent | ad59260f70ece277f24f9a847d6cd3c2ed3bb9b2 (diff) | |
download | rails-3f95908c3b3d9f500bb7940d7aed986e7c9de515.tar.gz rails-3f95908c3b3d9f500bb7940d7aed986e7c9de515.tar.bz2 rails-3f95908c3b3d9f500bb7940d7aed986e7c9de515.zip |
Merge pull request #8457 from caike/master
Update AR Changelog with correct example using includes [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 8 |
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. |