Sha256: 00a34c2d68e8eefa2d18c95360418fb5d49ffb5f054c1108b9eab49436b3dcae

Contents?: true

Size: 297 Bytes

Versions: 16

Compression:

Stored size: 297 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 5 rubygems

Version Path
intentmedia-activerecord-jdbc-adapter-1.1.1.1 lib/arjdbc/h2/connection_methods.rb
c3-activerecord-jdbc-adapter-1.1.3.1 lib/arjdbc/h2/connection_methods.rb
c3-activerecord-jdbc-adapter-1.1.3 lib/arjdbc/h2/connection_methods.rb
jashmenn-activerecord-jdbc-adapter-1.2.0.0 lib/arjdbc/h2/connection_methods.rb
jashmenn-activerecord-jdbc-adapter-1.2.0 lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.1.3 lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.1.2 lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.1.1 lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.1.0 lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.0.3-java lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.0.2-java lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.0.1-java lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.0.0-java lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.0.0.beta2-java lib/arjdbc/h2/connection_methods.rb
kb-activerecord-jdbc-adapter-1.0.0.beta1-java lib/arjdbc/h2/connection_methods.rb
activerecord-jdbc-adapter-1.0.0.beta1-java lib/arjdbc/h2/connection_methods.rb