Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update AR Changelog with correct example using includes

These queries don't seem to work without the includes clause. [ci skip]
  • Loading branch information...
commit ad59260f70ece277f24f9a847d6cd3c2ed3bb9b2 1 parent 69163cc
@caike caike authored carlosantoniodasilva committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/
8 activerecord/
@@ -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('' => 'foo')
- Post.order('')
+ Post.includes(:comments).where(comments: { name: 'foo' })
+ Post.includes(:comments).where('' => 'foo')
+ Post.includes(:comments).order('')
- 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.
Please sign in to comment.
Something went wrong with that request. Please try again.