Sha256: 934239889a6de75593706b5f979413a43e02cab775374b27f18958030610016f
Contents?: true
Size: 641 Bytes
Versions: 8
Compression:
Stored size: 641 Bytes
Contents
module ArJdbc if defined? ActiveRecord::ConnectionHandling # 4.0 ConnectionMethods = ActiveRecord::ConnectionHandling else # 3.x ConnectionMethods = (class << ActiveRecord::Base; self; end) end ConnectionMethods.module_eval do 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
8 entries across 8 versions & 1 rubygems