connection_ext.rb 473 B

12345678910111213141516
  1. require 'active_support/core_ext/module/aliasing'
  2. module ActiveResource
  3. class Connection
  4. attr_reader :response
  5. def handle_response_with_response_capture(response)
  6. @response = handle_response_without_response_capture(response)
  7. end
  8. alias_method_chain :handle_response, :response_capture
  9. # alias_method :handle_response_without_instance, :handle_response
  10. # alias_method :handle_response, :handle_response_with_instance
  11. end
  12. end