aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-01-29 07:15:55 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-01-29 07:16:28 +0900
commit1c239df3deb349650be9b305b2c8980d6659ab3e (patch)
tree6da86dcf44b0fceb8697294639e7faa982e4e6a3 /activerecord/CHANGELOG.md
parent970b5e150c5beb523a475cdc2b3cb218edfc771d (diff)
parent41d34ae68fc09474d88ed286890f4e73e815fb66 (diff)
downloadrails-1c239df3deb349650be9b305b2c8980d6659ab3e.tar.gz
rails-1c239df3deb349650be9b305b2c8980d6659ab3e.tar.bz2
rails-1c239df3deb349650be9b305b2c8980d6659ab3e.zip
Merge pull request #31724 from orekyuu/fix-expand-composed-object-array
Fix not expanded problem when passing an Array object as argument to the where method using composed_of column.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index af77eaae0e..fd9f2553ff 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,17 @@
+* Fix not expanded problem when passing an Array object as argument to the where method using `composed_of` column.
+
+ ```
+ david_balance = customers(:david).balance
+ Customer.where(balance: [david_balance]).to_sql
+
+ # Before: WHERE `customers`.`balance` = NULL
+ # After : WHERE `customers`.`balance` = 50
+ ```
+
+ Fixes #31723.
+
+ *Yutaro Kanagawa*
+
* Fix `count(:all)` with eager loading and having an order other than the driving table.
Fixes #31783.