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

Version Path
saturnflyer-activerecord-jdbc-adapter-0.9.3 adapters/postgresql/lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.9.7-java lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.9.6-java lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.9.5-java lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.9.4-java lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.9.3-java lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.9.0.1 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.9.2 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.9 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.8.1 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.9.1 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.6 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.7 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.7.2 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.8 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.7.1 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb
activerecord-jdbcpostgresql-adapter-0.8.2 lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb