aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorAlex Robbin <alex.robbin@meyouhealth.com>2015-03-26 13:26:19 -0400
committerAlex Robbin <alex.robbin@meyouhealth.com>2015-05-11 09:02:48 -0400
commitcbd66b430b6553e468bcdaa94af661a2d8b69d81 (patch)
treefbd365f821265d2d3eccaa5a3908814609543f29 /activerecord/CHANGELOG.md
parentdb0e649aba7135133154a35549219cffe968eaf6 (diff)
downloadrails-cbd66b430b6553e468bcdaa94af661a2d8b69d81.tar.gz
rails-cbd66b430b6553e468bcdaa94af661a2d8b69d81.tar.bz2
rails-cbd66b430b6553e468bcdaa94af661a2d8b69d81.zip
allow setting of a demodulized class name when using STI
If your STI class looks like this: ```ruby class Company < ActiveRecord::Base self.store_full_sti_class = false class GoodCo < Company end class BadCo < Company end end ``` The expectation (which is valid) is that the `type` in the database is saved as `GoodCo` or `BadCo`. However, another expectation should be that setting `type` to `GoodCo` would correctly instantiate the object as a `Company::GoodCo`. That second expectation is what this should fix.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 09045087d9..d02d8912a3 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,7 @@
+* Allow setting of a demodulized class name whenusing single table inheritance.
+
+ *Alex Robbin*
+
* Dump indexes in `create_table` instead of `add_index`.
If the adapter supports indexes in create table, generated SQL is