aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/lib/active_resource/connection.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activeresource/lib/active_resource/connection.rb b/activeresource/lib/active_resource/connection.rb
index ee700700ae..d06543d700 100644
--- a/activeresource/lib/active_resource/connection.rb
+++ b/activeresource/lib/active_resource/connection.rb
@@ -106,9 +106,9 @@ module ActiveResource
private
# Makes a request to the remote service.
def request(method, path, *arguments)
- result = ActiveSupport::Notifications.instrument!("active_resource.request",
- :method => method, :path => path, :site => site) do
- http.send(method, path, *arguments)
+ result = ActiveSupport::Notifications.instrument("active_resource.request",
+ :method => method, :path => path, :site => site) do |payload|
+ payload[:result] = http.send(method, path, *arguments)
end
handle_response(result)
rescue Timeout::Error => e