diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-03-16 02:46:01 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-03-16 02:46:01 +0000 |
commit | def746030c20697f2c4376515169eeda2f6332b4 (patch) | |
tree | 1569968114c0c728011b450ff10ac278914f60e8 /activerecord/CHANGELOG | |
parent | 0859779d6f1cadfec12f1112c80382658466ab7d (diff) | |
download | rails-def746030c20697f2c4376515169eeda2f6332b4.tar.gz rails-def746030c20697f2c4376515169eeda2f6332b4.tar.bz2 rails-def746030c20697f2c4376515169eeda2f6332b4.zip |
Added Base.abstract_class? that marks which classes are not part of the Active Record hierarchy. closes #3704
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 0ef11609ee..577670d84f 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,26 @@ *SVN* +* Added Base.abstract_class? that marks which classes are not part of the Active Record hierarchy #3704 [Rick Olson] + + class CachedModel < ActiveRecord::Base + self.abstract_class = true + end + + class Post < CachedModel + end + + CachedModel.abstract_class? + => true + + Post.abstract_class? + => false + + Post.base_class + => Post + + Post.table_name + => 'posts' + * Allow :dependent options to be used with polymorphic joins. #3820 [Rick Olson] class Foo < ActiveRecord::Base |