Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3148

Show
Ignore:
Timestamp:
11/21/05 12:47:28 (3 years ago)
Author:
bitsweat
Message:

Simpler Mysql load test.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb

    r3001 r3148  
    66    def self.mysql_connection(config) # :nodoc: 
    77      # Only include the MySQL driver if one hasn't already been loaded 
    8       unless self.class.const_defined?(:Mysql) 
     8      unless defined? Mysql 
    99        begin 
    1010          require_library_or_gem 'mysql' 
     
    2222        end 
    2323      end 
    24        
     24 
    2525 
    2626      config = config.symbolize_keys