diff options
author | Matthew Draper <matthew@trebex.net> | 2015-12-18 13:46:18 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-12-18 13:51:04 +1030 |
commit | 4a58aef7e3035e775b4cd6cc65575c8ed02cd8af (patch) | |
tree | 683e0e7b82ceae65ebc0dd864a910546781d7fe0 /activerecord/lib/active_record/connection_adapters/connection_specification.rb | |
parent | 7a6772c0e7acc10f4edad8ce3e6d401524ea1336 (diff) | |
parent | fb24d0ed6c26da70045c6fc128aaa9dcb777c28c (diff) | |
download | rails-4a58aef7e3035e775b4cd6cc65575c8ed02cd8af.tar.gz rails-4a58aef7e3035e775b4cd6cc65575c8ed02cd8af.tar.bz2 rails-4a58aef7e3035e775b4cd6cc65575c8ed02cd8af.zip |
Merge pull request #22642 from seuros/remove-mysql-adapter
Remove legacy mysql adapter
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/connection_specification.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/connection_specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/connection_specification.rb index 08d46fca96..f633892dee 100644 --- a/activerecord/lib/active_record/connection_adapters/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/connection_specification.rb @@ -175,7 +175,7 @@ module ActiveRecord rescue Gem::LoadError => e raise Gem::LoadError, "Specified '#{spec[:adapter]}' for database adapter, but the gem is not loaded. Add `gem '#{e.name}'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord)." rescue LoadError => e - raise LoadError, "Could not load '#{path_to_adapter}'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile.", e.backtrace + raise LoadError, "Could not load '#{path_to_adapter}'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile.", e.backtrace end adapter_method = "#{spec[:adapter]}_connection" |