mirror of
https://github.com/github/rails.git
synced 2026-01-23 05:17:59 -05:00
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:
@@ -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] || ''
|
||||
|
||||
Reference in New Issue
Block a user