From c2da5e57cd648e31f08760d8618843a945660060 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 6 Oct 2005 17:16:47 +0000 Subject: [PATCH] Remove straggling symbolize_strings_in_hash from [2427]. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/active_record/connection_adapters/db2_adapter.rb | 2 +- .../lib/active_record/connection_adapters/sqlserver_adapter.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/connection_adapters/db2_adapter.rb b/activerecord/lib/active_record/connection_adapters/db2_adapter.rb index b31e205fc8..58dd04a784 100644 --- a/activerecord/lib/active_record/connection_adapters/db2_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/db2_adapter.rb @@ -11,7 +11,7 @@ begin # Establishes a connection to the database that's used by # all Active Record objects def self.db2_connection(config) # :nodoc: - symbolize_strings_in_hash(config) + config = config.symbolize_keys usr = config[:username] pwd = config[:password] diff --git a/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb index 2786aa2119..c1c9ae6f4b 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb @@ -16,7 +16,7 @@ module ActiveRecord def self.sqlserver_connection(config) #:nodoc: require_library_or_gem 'dbi' unless self.class.const_defined?(:DBI) - symbolize_strings_in_hash(config) + config = config.symbolize_keys mode = config[:mode] ? config[:mode].to_s.upcase : 'ADO' username = config[:username] ? config[:username].to_s : 'sa'