diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-11-09 14:59:15 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-11-09 14:59:15 +0000 |
commit | 5dc3f91832fd8580287e5cbeba478bb8b9580dc1 (patch) | |
tree | 855cfa84f7002222dff496a4f8247447463045e7 /activemodel/CHANGES | |
parent | fcfcc707d4ae94441496d36e78a598914df3cebc (diff) | |
download | rails-5dc3f91832fd8580287e5cbeba478bb8b9580dc1.tar.gz rails-5dc3f91832fd8580287e5cbeba478bb8b9580dc1.tar.bz2 rails-5dc3f91832fd8580287e5cbeba478bb8b9580dc1.zip |
initial experimental commit of active_model
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activemodel/CHANGES')
-rw-r--r-- | activemodel/CHANGES | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activemodel/CHANGES b/activemodel/CHANGES new file mode 100644 index 0000000000..a9f9c27507 --- /dev/null +++ b/activemodel/CHANGES @@ -0,0 +1,12 @@ +Changes from extracting bits to ActiveModel + +* ActiveModel::Observer#add_observer! + + It has a custom hook to define after_find that should really be in a + ActiveRecord::Observer subclass: + + def add_observer!(klass) + klass.add_observer(self) + klass.class_eval 'def after_find() end' unless + klass.respond_to?(:after_find) + end
\ No newline at end of file |