diff options
author | Lauro Caetano <laurocaetano1@gmail.com> | 2014-04-03 22:07:03 -0300 |
---|---|---|
committer | Lauro Caetano <laurocaetano1@gmail.com> | 2014-04-11 20:06:19 -0300 |
commit | d6840f914a32bff4d73f23c3f5c64c5397f8b400 (patch) | |
tree | ab8d7cea0dabe701d8acf61916541bfd7096ba11 /activerecord/CHANGELOG.md | |
parent | c8a70660d46343d05c954c8a9b830166aa7335e9 (diff) | |
download | rails-d6840f914a32bff4d73f23c3f5c64c5397f8b400.tar.gz rails-d6840f914a32bff4d73f23c3f5c64c5397f8b400.tar.bz2 rails-d6840f914a32bff4d73f23c3f5c64c5397f8b400.zip |
The comparison between `Relation` and `CollectionProxy` should be consistent.
Example:
author.posts == Post.where(author_id: author.id)
# => true
Post.where(author_id: author.id) == author.posts
# => true
Fixes #13506
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index dead555cca..8bbd27bb58 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,16 @@ +* The comparison between `Relation` and `CollectionProxy` should be consistent. + + Example: + + author.posts == Post.where(author_id: author.id) + # => true + Post.where(author_id: author.id) == author.posts + # => true + + Fixes #13506. + + *Lauro Caetano* + * Fixed error for aggregate methods (`empty?`, `any?`, `count`) with `select` which created invalid SQL. |