Sha256: 5ca00b4cb805e7508fe8ab760da14f9310e37622164819289e2525db4bb12f5d

Contents?: true

Size: 342 Bytes

Versions: 12

Compression:

Stored size: 342 Bytes

Contents

module ActiveRecord
  class Base
    class << self
      def h2_connection(config)
        config[:url] ||= "jdbc:h2:#{config[:database]}"
        config[:driver] ||= "org.h2.Driver"
        config[:adapter_spec] = ::ArJdbc::H2
        embedded_driver(config)
      end
      alias_method :jdbch2_connection, :h2_connection
    end
  end
end

Version data entries

12 entries across 12 versions & 4 rubygems

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