diff options
author | José Valim <jose.valim@gmail.com> | 2012-03-13 14:04:03 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-03-13 14:04:03 -0700 |
commit | ae67a63fe9c5be4b8e2ef74239ec340e99d231ac (patch) | |
tree | 41674ee21bc537f1bf4de9beca2efc0533a3ed02 /activeresource/lib/active_resource/observing.rb | |
parent | 663b66fd538fc2f637f09bb27aad65449585f226 (diff) | |
parent | f1637bf2bb00490203503fbd943b73406e043d1d (diff) | |
download | rails-ae67a63fe9c5be4b8e2ef74239ec340e99d231ac.tar.gz rails-ae67a63fe9c5be4b8e2ef74239ec340e99d231ac.tar.bz2 rails-ae67a63fe9c5be4b8e2ef74239ec340e99d231ac.zip |
Merge pull request #572 from sikachu/remove_activeresource
Remove Active Resource source files from the repository.
Diffstat (limited to 'activeresource/lib/active_resource/observing.rb')
-rw-r--r-- | activeresource/lib/active_resource/observing.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/activeresource/lib/active_resource/observing.rb b/activeresource/lib/active_resource/observing.rb deleted file mode 100644 index 1bfceb8dc8..0000000000 --- a/activeresource/lib/active_resource/observing.rb +++ /dev/null @@ -1,29 +0,0 @@ -module ActiveResource - module Observing - extend ActiveSupport::Concern - include ActiveModel::Observing - - included do - %w( create save update destroy ).each do |method| - # def create_with_notifications(*args, &block) - # notify_observers(:before_create) - # if result = create_without_notifications(*args, &block) - # notify_observers(:after_create) - # end - # result - # end - # alias_method_chain(create, :notifications) - class_eval(<<-EOS, __FILE__, __LINE__ + 1) - def #{method}_with_notifications(*args, &block) - notify_observers(:before_#{method}) - if result = #{method}_without_notifications(*args, &block) - notify_observers(:after_#{method}) - end - result - end - EOS - alias_method_chain(method, :notifications) - end - end - end -end |