Skip to content

Instantly share code, notes, and snippets.

@maxy
Created July 14, 2014 06:07
Show Gist options
  • Select an option

  • Save maxy/0fdd74a9f6c27c14cda0 to your computer and use it in GitHub Desktop.

Select an option

Save maxy/0fdd74a9f6c27c14cda0 to your computer and use it in GitHub Desktop.

Revisions

  1. maxy created this gist Jul 14, 2014.
    10 changes: 10 additions & 0 deletions connection_adapters.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    module ActiveRecord
    module ConnectionAdapters
    alias_method :base_configure_connection, :configure_connection
    def configure_connection
    valiables = base_configure_connection
    @connection.set_error_verbosity(PG::PQERRORS_VERBOSE)
    valiables
    end
    end
    end