Sha256: bd587fc959c8621c348f1167500f41af2b72de4f1fba8833ac1d61dda209d3cd

Contents?: true

Size: 430 Bytes

Versions: 32

Compression:

Stored size: 430 Bytes

Contents

class ActiveRecord::Base
  class << self
    def jdbc_connection(config)
      adapter_class = config[:adapter_class]
      adapter_class ||= ::ActiveRecord::ConnectionAdapters::JdbcAdapter
      adapter_class.new(nil, logger, config)
    end
    alias jndi_connection jdbc_connection

    def embedded_driver(config)
      config[:username] ||= "sa"
      config[:password] ||= ""
      jdbc_connection(config)
    end
  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

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