diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-14 20:00:57 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-28 22:46:49 -0200 |
commit | ccecab3ba950a288b61a516bf9b6962e384aae0b (patch) | |
tree | f00e408870bb2230d7a210e6ae170feef0a80308 /activemodel/test/models | |
parent | e38d310912a610ffe8a0944a533bfb9e5950f3a5 (diff) | |
download | rails-ccecab3ba950a288b61a516bf9b6962e384aae0b.tar.gz rails-ccecab3ba950a288b61a516bf9b6962e384aae0b.tar.bz2 rails-ccecab3ba950a288b61a516bf9b6962e384aae0b.zip |
Remove observers and sweepers
They was extracted from a plugin.
See https://github.com/rails/rails-observers
[Rafael Mendonça França + Steve Klabnik]
Diffstat (limited to 'activemodel/test/models')
-rw-r--r-- | activemodel/test/models/observers.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/activemodel/test/models/observers.rb b/activemodel/test/models/observers.rb deleted file mode 100644 index 3729b3435e..0000000000 --- a/activemodel/test/models/observers.rb +++ /dev/null @@ -1,27 +0,0 @@ -class ORM - include ActiveModel::Observing - - def save - notify_observers :before_save - end - - class Observer < ActiveModel::Observer - def before_save_invocations - @before_save_invocations ||= [] - end - - def before_save(record) - before_save_invocations << record - end - end -end - -class Widget < ORM; end -class Budget < ORM; end -class WidgetObserver < ORM::Observer; end -class BudgetObserver < ORM::Observer; end -class AuditTrail < ORM::Observer - observe :widget, :budget -end - -ORM.instantiate_observers |