aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-10 19:18:37 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-10 19:18:37 +0000
commit7ed4b745fcd2c57747ed21ffa3a7a0cd92f621af (patch)
treebcee6d4e6ec3bd392004f979be6af4e66fbde79e /activerecord
parentde5c48c4e36ef477b641bf11d0f883f074164415 (diff)
downloadrails-7ed4b745fcd2c57747ed21ffa3a7a0cd92f621af.tar.gz
rails-7ed4b745fcd2c57747ed21ffa3a7a0cd92f621af.tar.bz2
rails-7ed4b745fcd2c57747ed21ffa3a7a0cd92f621af.zip
Some missing docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@369 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG12
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 817caebc8f..a6289ce2c2 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,17 @@
*SVN*
+* Added that Observers can use the observes class method instead of overwriting self.observed_class().
+
+ Before:
+ class ListSweeper < ActiveRecord::Base
+ def self.observed_class() [ List, Item ]
+ end
+
+ After:
+ class ListSweeper < ActiveRecord::Base
+ observes List, Item
+ end
+
* Fixed that conditions in has_many and has_and_belongs_to_many should be interpolated just like the finder_sql is
* Fixed Base#update_attribute to be indifferent to whether a string or symbol is used to describe the name