diff options
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 00681c13f1..90b5cb3b8f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -4,9 +4,11 @@ *Dmitry Polushkin* -* Generate subquery for `Relation` if it passed as array condition for `where` method +* Generate subquery for `Relation` if it passed as array condition for `where` + method. Example: + # Before Blog.where('id in (?)', Blog.where(id: 1)) # => SELECT "blogs".* FROM "blogs" WHERE "blogs"."id" = 1 @@ -17,7 +19,7 @@ # => SELECT "blogs".* FROM "blogs" # WHERE "blogs"."id" IN (SELECT "blogs"."id" FROM "blogs" WHERE "blogs"."id" = 1) - Fixes: #12415 + Fixes #12415. *Paul Nikitochkin* |