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