lib/activeresource-response/connection.rb in activeresource-response-0.1.0 vs lib/activeresource-response/connection.rb in activeresource-response-0.2.0

- old
+ new

@@ -7,10 +7,11 @@ begin origin_handle_response(response) rescue StandardError => e raise e end - response.extend(ActiveresourceResponse::HttpResponse) + response.extend(ActiveresourceResponse::HttpResponse) + Thread.current[:ActiveResourceHttpResponse] = response end def http_response Thread.current[:ActiveResourceHttpResponse] end \ No newline at end of file