Sha256: c53f1127f88c86c570ae5fcd37dc68da1ea1bd6d5cea4b642caf56fb8bc603bc
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
module ActiveRecord class Base class << self def h2_connection(config) require 'active_record/connection_adapters/jdbch2_adapter' config[:url] ||= "jdbc:h2:#{config[:database]}" config[:driver] ||= defined?(::Jdbc::H2.driver_name) ? ::Jdbc::H2.driver_name : 'org.h2.Driver' config[:adapter_spec] = ::ArJdbc::H2 embedded_driver(config) end alias_method :jdbch2_connection, :h2_connection end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-jdbc-adapter-1.2.5 | lib/arjdbc/h2/connection_methods.rb |