Sha256: d8ee2403457ee40162503ec5abbb645b24e3d96a521a3859239a2b1b708715cb

Contents?: true

Size: 844 Bytes

Versions: 26

Compression:

Stored size: 844 Bytes

Contents

# Stub library for postgresql -- allows Rails to load
# postgresql_adapter without error. Other than postgres-pr, there's no
# other way to use PostgreSQL on JRuby anyway, right? If you've
# installed ar-jdbc you probably want to use that to connect to pg.
#
# If by chance this library is installed in another Ruby and this file
# got required then we'll just continue to try to load the next pg.rb
# in the $LOAD_PATH.

unless defined?(JRUBY_VERSION)
  gem 'pg' if respond_to?(:gem)   # make sure pg gem is activated
  after_current_file = false
  $LOAD_PATH.each do |p|
    require_file = File.join(p, 'pg.rb')

    if File.expand_path(require_file) == File.expand_path(__FILE__)
      after_current_file = true
      next
    end

    if after_current_file && File.exist?(require_file)
      load require_file
      break
    end
  end
end

Version data entries

26 entries across 26 versions & 7 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 lib/pg.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.2 lib/pg.rb
activerecord-jdbc-adapter-1.3.0.beta1 lib/pg.rb
activerecord-jdbc-adapter-1.2.9 lib/pg.rb
activerecord-jdbc-adapter-1.2.8 lib/pg.rb
activerecord-jdbc-adapter-1.2.5 lib/pg.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 lib/pg.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 lib/pg.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 lib/pg.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 lib/pg.rb
activerecord-jdbc-adapter-1.2.2.1 lib/pg.rb
activerecord-jdbc-adapter-onsite-1.2.2 lib/pg.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 lib/pg.rb
intentmedia-activerecord-jdbc-adapter-1.1.1.1 lib/pg.rb
activerecord-jdbc-adapter-1.2.2 lib/pg.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 lib/pg.rb
activerecord-jdbc-adapter-1.2.1 lib/pg.rb
c3-activerecord-jdbc-adapter-1.1.3.1 lib/pg.rb
activerecord-jdbc-adapter-1.2.0 lib/pg.rb
c3-activerecord-jdbc-adapter-1.1.3 lib/pg.rb