aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJason Rush <diminish7@gmail.com>2012-04-05 13:21:48 -0600
committerAndrew White <andyw@pixeltrix.co.uk>2012-11-29 05:50:34 +0000
commit89b5b31cc4f8407f648a2447665ef23f9024e8a5 (patch)
tree721b47a8f33bf70851736164bf4a80cdd7c59e94 /activerecord/CHANGELOG.md
parenteba430aecbce963f5b2d91ef6a9c36aec8c824bb (diff)
downloadrails-89b5b31cc4f8407f648a2447665ef23f9024e8a5.tar.gz
rails-89b5b31cc4f8407f648a2447665ef23f9024e8a5.tar.bz2
rails-89b5b31cc4f8407f648a2447665ef23f9024e8a5.zip
Added STI support to init and building associations
Allows you to do BaseClass.new(:type => "SubClass") as well as parent.children.build(:type => "SubClass") or parent.build_child to initialize an STI subclass. Ensures that the class name is a valid class and that it is in the ancestors of the super class that the association is expecting.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index c90ce121a7..130d0f05d2 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,14 @@
## Rails 4.0.0 (unreleased) ##
+* Add STI support to init and building associations.
+ Allows you to do BaseClass.new(:type => "SubClass") as well as
+ parent.children.build(:type => "SubClass") or parent.build_child
+ to initialize an STI subclass. Ensures that the class name is a
+ valid class and that it is in the ancestors of the super class
+ that the association is expecting.
+
+ *Jason Rush*
+
* Observers was extracted from Active Record as `rails-observers` gem.
*Rafael Mendonça França*