gabrielg / extended_observers
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.document | ||
| |
.gitignore | ||
| |
LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
VERSION.yml | ||
| |
extended_observers.gemspec | ||
| |
lib/ | ||
| |
test/ |
README.rdoc
extended_observers
I needed to use an observer to observe multiple models, but only wanted to observe certain sets of changes on each one. There was also a bug where calling observe twice in an ActiveRecord Observer would clear out any previous list of observed classes. This patch adds both the :on option and refactors the workings of the observe method to not clear out models from previous declarations
See also: rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1639
Copyright
Copyright © 2009 Gabriel Gironda. See LICENSE for details.

