Sha256: e2db9ce8283f09c827a6a5fb4923272a9d33a3e9530008ab01c901ca713f1dea

Contents?: true

Size: 473 Bytes

Versions: 3

Compression:

Stored size: 473 Bytes

Contents

require 'active_support/core_ext/module/aliasing'

module ActiveResource
  class Connection
    
    attr_reader :response
    
    def handle_response_with_response_capture(response)
      @response = handle_response_without_response_capture(response)
    end
    
    alias_method_chain :handle_response, :response_capture
    # alias_method :handle_response_without_instance, :handle_response
    # alias_method :handle_response, :handle_response_with_instance
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
shopify_api-2.1.0 lib/active_resource/connection_ext.rb
shopify_api-2.0.0 lib/active_resource/connection_ext.rb
th_shopify_api-1.2.6.pre lib/active_resource/connection_ext.rb