Skip to content

Instantly share code, notes, and snippets.

@rainerborene
Created June 12, 2013 12:32
Show Gist options
  • Save rainerborene/5764848 to your computer and use it in GitHub Desktop.
Save rainerborene/5764848 to your computer and use it in GitHub Desktop.
module ActiveRecord
module ConnectionAdapters
class PostgreSQLAdapter < AbstractAdapter
alias_method :old_translate_exception, :translate_exception
def translate_exception(exception, message)
return exception unless exception.respond_to?(:result)
old_translate_exception(exception, message)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment