Sha256: e31c8da6b429294e84ac0b7445be0d18d7d3fd7111aab043b0a0a23a4bc5b44b

Contents?: true

Size: 516 Bytes

Versions: 17

Compression:

Stored size: 516 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/derby"
rescue LoadError
  raise if tried_gem
  require 'rubygems'
  gem "jdbc-derby"
  tried_gem = true
  retry
end

require 'active_record/connection_adapters/jdbc_adapter'

module ActiveRecord
  class Base
    class << self
      alias_method :jdbcderby_connection, :derby_connection
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

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