Sha256: 300766963e68d784118476829ee938e7c973b46574809bf0f1488833aa40d34b

Contents?: true

Size: 656 Bytes

Versions: 15

Compression:

Stored size: 656 Bytes

Contents

if defined?(JRUBY_VERSION)
  begin
    require 'active_record/version'
    if ActiveRecord::VERSION::MAJOR < 2
      if defined?(RAILS_CONNECTION_ADAPTERS)
        RAILS_CONNECTION_ADAPTERS << %q(jdbc)
      else
        RAILS_CONNECTION_ADAPTERS = %w(jdbc)
      end
      if ActiveRecord::VERSION::MAJOR == 1 && ActiveRecord::VERSION::MINOR == 14
        require 'arjdbc/jdbc'
      end
    else
      require 'active_record'
      require 'arjdbc/jdbc'
    end
  rescue LoadError
    warn "activerecord-jdbc-adapter requires ActiveRecord at runtime"
  end
else
  warn "activerecord-jdbc-adapter is for use with JRuby only"
end

require 'arjdbc/version'

Version data entries

15 entries across 15 versions & 5 rubygems

Version Path
cmoran92-activerecord-jdbc-adapter-1.2.1.2 lib/arjdbc.rb
activerecord-jdbc-adapter-1.2.5 lib/arjdbc.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 lib/arjdbc.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 lib/arjdbc.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 lib/arjdbc.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 lib/arjdbc.rb
activerecord-jdbc-adapter-1.2.2.1 lib/arjdbc.rb
activerecord-jdbc-adapter-onsite-1.2.2 lib/arjdbc.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 lib/arjdbc.rb
activerecord-jdbc-adapter-1.2.2 lib/arjdbc.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 lib/arjdbc.rb
activerecord-jdbc-adapter-1.2.1 lib/arjdbc.rb
activerecord-jdbc-adapter-1.2.0 lib/arjdbc.rb
jashmenn-activerecord-jdbc-adapter-1.2.0.0 lib/arjdbc.rb
jashmenn-activerecord-jdbc-adapter-1.2.0 lib/arjdbc.rb