Sha256: cbd5a42e75130abe5fffb1d8da7243b673b6d2752f6389821ab1c275d0a165b8
Contents?: true
Size: 532 Bytes
Versions: 17
Compression:
Stored size: 532 Bytes
Contents
tried_gem = false begin require "jdbc_adapter" rescue LoadError raise if tried_gem require 'rubygems' gem "activerecord-jdbc-adapter" tried_gem = true retry end tried_gem = false begin require "jdbc/postgres" rescue LoadError raise if tried_gem require 'rubygems' gem "jdbc-postgres" tried_gem = true retry end require 'active_record/connection_adapters/jdbc_adapter' module ActiveRecord class Base class << self alias_method :jdbcpostgresql_connection, :postgresql_connection end end end
Version data entries
17 entries across 17 versions & 2 rubygems