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

Version Path
cmoran92-activerecord-jdbc-adapter-1.2.1.2 lib/arjdbc/oracle/connection_methods.rb
activerecord-jdbc-adapter-1.2.5 lib/arjdbc/oracle/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 lib/arjdbc/oracle/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 lib/arjdbc/oracle/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 lib/arjdbc/oracle/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 lib/arjdbc/oracle/connection_methods.rb
activerecord-jdbc-adapter-1.2.2.1 lib/arjdbc/oracle/connection_methods.rb
activerecord-jdbc-adapter-onsite-1.2.2 lib/arjdbc/oracle/connection_methods.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 lib/arjdbc/oracle/connection_methods.rb
activerecord-jdbc-adapter-1.2.2 lib/arjdbc/oracle/connection_methods.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 lib/arjdbc/oracle/connection_methods.rb
activerecord-jdbc-adapter-1.2.1 lib/arjdbc/oracle/connection_methods.rb
activerecord-jdbc-adapter-1.2.0 lib/arjdbc/oracle/connection_methods.rb