Sha256: 46f2b26e199ff2dd94ea4b4c5aaeb2d16b7bce8905db7b4eceadc53c59631867
Contents?: true
Size: 311 Bytes
Versions: 16
Compression:
Stored size: 311 Bytes
Contents
class ActiveRecord::Base class << self def oracle_connection(config) config[:port] ||= 1521 config[:url] ||= "jdbc:oracle:thin:@#{config[:host]}:#{config[:port]}:#{config[:database]}" config[:driver] ||= "oracle.jdbc.driver.OracleDriver" jdbc_connection(config) end end end
Version data entries
16 entries across 16 versions & 5 rubygems