diff options
author | Yves Senn <yves.senn@gmail.com> | 2016-01-19 17:27:21 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2016-01-19 17:31:16 +0100 |
commit | 3ea4476942d2ba5ddc0d3b2d1f3730455661b06a (patch) | |
tree | 4338c44719004fbd15a59783008de68b11321c20 /activerecord/CHANGELOG.md | |
parent | f8234313feab83c65912b2d96a6dd8e0149b8642 (diff) | |
download | rails-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.md | 8 |
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: |