Sha256: 85b202e36b61eb046fa23620c95d4f9db7e0604f0ba9bcfcf5c92426af6b6cc2
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
module ActiveresourceResponse module Connection 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 StandardError => e raise e end response.extend(ActiveresourceResponse::HttpResponse) Thread.current[:ActiveResourceHttpResponse] = response end def http_response Thread.current[:ActiveResourceHttpResponse] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeresource-response-0.2.0 | lib/activeresource-response/connection.rb |