diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-09-30 07:09:44 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-09-30 07:09:44 +0000 |
commit | 66d05f5e2c7ac6b18220956fbcf34efcd32638fc (patch) | |
tree | 6544dd694d02af7438489a4864daec9c2bdce0b5 /activerecord/CHANGELOG | |
parent | 30a652ad41428b922b1ed637f491776f1f1dff13 (diff) | |
download | rails-66d05f5e2c7ac6b18220956fbcf34efcd32638fc.tar.gz rails-66d05f5e2c7ac6b18220956fbcf34efcd32638fc.tar.bz2 rails-66d05f5e2c7ac6b18220956fbcf34efcd32638fc.zip |
Add attr_readonly to specify columns that are skipped during a normal ActiveRecord #save operation. Closes #6896 [dcmanges]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 9372adb583..f470fe7b84 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,16 @@ *2.0.0 [Preview Release]* (September 29th, 2007) [Includes duplicates of changes from 1.14.2 - 1.15.3] +* Add attr_readonly to specify columns that are skipped during a normal ActiveRecord #save operation. Closes #6896 [dcmanges] + + class Comment < ActiveRecord::Base + # Automatically sets Article#comments_count as readonly. + belongs_to :article, :counter_cache => :comments_count + end + + class Article < ActiveRecord::Base + attr_readonly :approved_comments_count + end + * Make size for has_many :through use counter cache if it exists. Closes #9734 [xaviershay] * Remove DB2 adapter since IBM chooses to maintain their own adapter instead. [Jeremy Kemper] |