Sha256: e34fd7a160e29aa867f1ee79574e0c2727bad4c9d92b22680a21126389d4be20
Contents?: true
Size: 358 Bytes
Versions: 13
Compression:
Stored size: 358 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" config[:adapter_spec] = ::ArJdbc::Oracle jdbc_connection(config) end end end
Version data entries
13 entries across 13 versions & 4 rubygems