Sha256: b08f87b5569048b291b6855d106a407f7e60182f77b768bc2548d568080dd6a1
Contents?: true
Size: 655 Bytes
Versions: 3
Compression:
Stored size: 655 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
3 entries across 3 versions & 1 rubygems