# File lib/active_resource_response/connection.rb, line 25 def self.included(base) base.class_eval do alias_method :origin_handle_response, :handle_response def handle_response(response) begin origin_handle_response(response) rescue raise ensure response.extend HttpResponse self.http_response=(response) end end def http_response http_storage[:ActiveResourceResponse] end def http_response=(response) http_storage[:ActiveResourceResponse] = response end def http_storage Thread.current end end end