Skip to content

Commit

Permalink
Merge pull request #8457 from caike/master
Browse files Browse the repository at this point in the history
Update AR Changelog with correct example using includes [ci skip]
  • Loading branch information
carlosantoniodasilva committed Dec 8, 2012
2 parents 236bed9 + ad59260 commit 3f95908
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activerecord/CHANGELOG.md
Expand Up @@ -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.

Expand Down

0 comments on commit 3f95908

Please sign in to comment.