Permalink
Browse files

Deprecation warning for vendor/mysql.rb usage. Gone in 2.2, so gem in…

…stall rails sooner than later.
  • Loading branch information...
1 parent 0aedc7a commit 20b07f9a14e15d26e942092295d09ea909edd08b @jeremy jeremy committed Jun 8, 2008
Showing with 1 addition and 4 deletions.
  1. +1 −4 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -50,10 +50,7 @@ def self.require_mysql
rescue LoadError => cannot_require_mysql
# Use the bundled Ruby/MySQL driver if no driver is already in place
begin
- ActiveRecord::Base.logger.info(
- "WARNING: You're using the Ruby-based MySQL library that ships with Rails. This library is not suited for production. " +
- "Please install the C-based MySQL library instead (gem install mysql)."
- ) if ActiveRecord::Base.logger
+ ActiveSupport::Deprecation.warn "You're using the Ruby-based MySQL library that ships with Rails. This library will be REMOVED FROM RAILS 2.2. Please switch to the offical mysql gem: `gem install mysql`", caller
require 'active_record/vendor/mysql'
rescue LoadError

0 comments on commit 20b07f9

Please sign in to comment.