Skip to content

Instantly share code, notes, and snippets.

@adrianpike
Created May 18, 2015 17:55
Show Gist options
  • Save adrianpike/9f7bcb424986ddd4c9af to your computer and use it in GitHub Desktop.
Save adrianpike/9f7bcb424986ddd4c9af to your computer and use it in GitHub Desktop.
require 'active_resource'
class ActiveResource::ConnectionError
def to_s
message = super
message << " Response body = #{response.body}." if response.respond_to?(:body)
message
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment