aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/log_subscriber.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2011-05-15 15:34:36 -0400
committerPrem Sichanugrist <s@sikachu.com>2012-03-13 14:55:44 -0400
commitf1637bf2bb00490203503fbd943b73406e043d1d (patch)
tree53bfe16edac03871486be9be4160ff8aa0e28216 /activeresource/lib/active_resource/log_subscriber.rb
parenta85714a673d2e06b923bd4eba443a3849d332cce (diff)
downloadrails-f1637bf2bb00490203503fbd943b73406e043d1d.tar.gz
rails-f1637bf2bb00490203503fbd943b73406e043d1d.tar.bz2
rails-f1637bf2bb00490203503fbd943b73406e043d1d.zip
Remove Active Resource source files from the repository
Dear Active Resource, It's not that I hate you or anything, but you didn't get much attention lately. There're so many alternatives out there, and I think people have made their choice to use them than you. I think it's time for you to have a big rest, peacefully in this Git repository. I will miss you, @sikachu.
Diffstat (limited to 'activeresource/lib/active_resource/log_subscriber.rb')
-rw-r--r--activeresource/lib/active_resource/log_subscriber.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/activeresource/lib/active_resource/log_subscriber.rb b/activeresource/lib/active_resource/log_subscriber.rb
deleted file mode 100644
index 9e52baf36d..0000000000
--- a/activeresource/lib/active_resource/log_subscriber.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-module ActiveResource
- class LogSubscriber < ActiveSupport::LogSubscriber
- def request(event)
- result = event.payload[:result]
- info "#{event.payload[:method].to_s.upcase} #{event.payload[:request_uri]}"
- info "--> %d %s %d (%.1fms)" % [result.code, result.message, result.body.to_s.length, event.duration]
- end
-
- def logger
- ActiveResource::Base.logger
- end
- end
-end
-
-ActiveResource::LogSubscriber.attach_to :active_resource \ No newline at end of file