aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-08-07 15:17:15 +0200
committerYves Senn <yves.senn@gmail.com>2013-08-08 07:27:30 +0200
commit5ac2341fab689344991b2a4817bd2bc8b3edac9d (patch)
tree6779faa675a2a2e9cad6fd2e0a94cc5674f9b1d1 /activerecord/CHANGELOG.md
parent765b8aa05c2176ec8d12b623ffc3df330f4ea383 (diff)
downloadrails-5ac2341fab689344991b2a4817bd2bc8b3edac9d.tar.gz
rails-5ac2341fab689344991b2a4817bd2bc8b3edac9d.tar.bz2
rails-5ac2341fab689344991b2a4817bd2bc8b3edac9d.zip
cast hstore values on write to be consistent with reading from the db.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 487352fce6..f53cb6ad51 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,18 @@
+* Type cast hstore values on write, so that the value is consistent
+ with reading from the database.
+
+ Example:
+
+ x = Hstore.new tags: {"bool" => true, "number" => 5}
+
+ # Before:
+ x.tags # => {"bool" => true, "number" => 5}
+
+ # After:
+ x.tags # => {"bool" => "true", "number" => "5"}
+
+ *Yves Senn* , *Severin Schoepke*
+
* Fix multidimensional PG arrays containing non-string items.
*Yves Senn*