Permalink
Browse files

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
  • Loading branch information...
dhh committed Feb 18, 2005
1 parent 11ffeaf commit 5fc48bc54fc82f350ab4838ca3cc0eff158225fc
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
@@ -3,13 +3,13 @@
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] || ''

0 comments on commit 5fc48bc

Please sign in to comment.