diff options
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 |