aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2016-01-19 17:27:21 +0100
committerYves Senn <yves.senn@gmail.com>2016-01-19 17:31:16 +0100
commit3ea4476942d2ba5ddc0d3b2d1f3730455661b06a (patch)
tree4338c44719004fbd15a59783008de68b11321c20 /activerecord/CHANGELOG.md
parentf8234313feab83c65912b2d96a6dd8e0149b8642 (diff)
downloadrails-3ea4476942d2ba5ddc0d3b2d1f3730455661b06a.tar.gz
rails-3ea4476942d2ba5ddc0d3b2d1f3730455661b06a.tar.bz2
rails-3ea4476942d2ba5ddc0d3b2d1f3730455661b06a.zip
run `type` column through attribtues API type casting.
Closes #21986. This makes it possible to write custom types that define a different mapping for STI columns.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 3d251f95cc..81027eab82 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,11 @@
+* Run `type` attributes through attributes API type-casting before
+ instantiating the corresponding subclass. This makes it possible to define
+ custom STI mappings.
+
+ Fixes #21986.
+
+ *Yves Senn*
+
* Add expression support on the schema default.
Example: