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