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:
David Heinemeier Hansson 2005-02-18 17:09:50 +00:00
parent 11ffeaf0bb
commit 5fc48bc54f
1 changed files with 1 additions and 1 deletions

View File

@ -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] || ''