aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-11-21 12:47:28 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-11-21 12:47:28 +0000
commitbaad1c4cdce95b167f5b0a8329f853e58d6430a2 (patch)
treece779fadfbeeed2dbbf7588b71bd924893f1a6a5 /activerecord
parent119155bebbaf02a0f9540e3bcbdec5e4d3efc636 (diff)
downloadrails-baad1c4cdce95b167f5b0a8329f853e58d6430a2.tar.gz
rails-baad1c4cdce95b167f5b0a8329f853e58d6430a2.tar.bz2
rails-baad1c4cdce95b167f5b0a8329f853e58d6430a2.zip
Simpler Mysql load test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/connection_adapters/mysql_adapter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
index d58590677b..ceb42a659c 100755
--- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -5,7 +5,7 @@ module ActiveRecord
# Establishes a connection to the database that's used by all Active Record objects.
def self.mysql_connection(config) # :nodoc:
# Only include the MySQL driver if one hasn't already been loaded
- unless self.class.const_defined?(:Mysql)
+ unless defined? Mysql
begin
require_library_or_gem 'mysql'
# The C version of mysql returns null fields in each_hash if Mysql::VERSION is defined
@@ -21,7 +21,7 @@ module ActiveRecord
end
end
end
-
+
config = config.symbolize_keys
host = config[:host]