root/branches/2-1-caching/activemodel/CHANGES
| Revision 8118, 343 bytes (checked in by rick, 10 months ago) |
|---|
| Line | |
|---|---|
| 1 | Changes from extracting bits to ActiveModel |
| 2 | |
| 3 | * ActiveModel::Observer#add_observer! |
| 4 | |
| 5 | It has a custom hook to define after_find that should really be in a |
| 6 | ActiveRecord::Observer subclass: |
| 7 | |
| 8 | def add_observer!(klass) |
| 9 | klass.add_observer(self) |
| 10 | klass.class_eval 'def after_find() end' unless |
| 11 | klass.respond_to?(:after_find) |
| 12 | end |
Note: See TracBrowser for help on using the browser.