Fixed a bit to eager requiring of oracle bindings in oracle adapter #634
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
11ffeaf0bb
commit
5fc48bc54f
|
@ -3,13 +3,13 @@ require 'active_record/connection_adapters/abstract_adapter'
|
|||
require 'date'
|
||||
|
||||
begin
|
||||
require 'oracle' unless self.class.const_defined?(:ORAconn)
|
||||
|
||||
module ActiveRecord
|
||||
class Base
|
||||
# Establishes a connection to the database that's used by
|
||||
# all Active Record objects
|
||||
def self.oracle_connection(config) # :nodoc:
|
||||
require 'oracle' unless self.class.const_defined?(:ORAconn)
|
||||
symbolize_strings_in_hash(config)
|
||||
usr = config[:username] || ''
|
||||
pwd = config[:password] || ''
|
||||
|
|
Loading…
Reference in New Issue