aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/observer_array.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Handle enabling/disabling observers at different levels of the class ↵José Valim2011-04-281-31/+3
| | | | | | | | | | hierarchy." This reverts commit ad62f1928768bd2676958a4a08512bad342fe469 because the current subclasses implementation leaks memory in development. Instead of keeping an array of subclasses, the better solution is to ask the parent if an observer is being disabled or not.
* Handle enabling/disabling observers at different levels of the class hierarchy.Myron Marston2011-04-281-3/+31
| | | | Last call wins.
* Allow observers to be enabled and disabled.Myron Marston2011-04-281-0/+98
This is useful in situations like model unit tests and the occasional rake task to backfill old data.