Skip to content

Commit c2a3305

Browse files
Merge pull request rails#50108 from jonathanhefner/follow-up-50104
Change disjunction to conjunction in suggestion
2 parents 90b55e5 + 2c240c0 commit c2a3305

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

activerecord/lib/active_record/connection_adapters.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# frozen_string_literal: true
22

3+
require "active_support/core_ext/string/filters"
4+
35
module ActiveRecord
46
module ConnectionAdapters
57
extend ActiveSupport::Autoload
@@ -32,7 +34,7 @@ def resolve(adapter_name) # :nodoc:
3234
raise AdapterNotFound, <<~MSG.squish
3335
Database configuration specifies nonexistent '#{adapter_name}' adapter.
3436
Available adapters are: #{@adapters.keys.sort.join(", ")}.
35-
Ensure that the adapter is spelled correctly in config/database.yml or that you've added the necessary
37+
Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary
3638
adapter gem to your Gemfile if it's not in the list of available adapters.
3739
MSG
3840
end

activerecord/test/cases/database_configurations/resolver_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_url_invalid_adapter
1616
Base.connection_handler.establish_connection "ridiculous://foo?encoding=utf8"
1717
end
1818

19-
assert_match "Database configuration specifies nonexistent 'ridiculous' adapter. Available adapters are: abstract, fake, mysql2, postgresql, sqlite3, trilogy. Ensure that the adapter is spelled correctly in config/database.yml or that you've added the necessary adapter gem to your Gemfile if it's not in the list of available adapters.", error.message
19+
assert_match "Database configuration specifies nonexistent 'ridiculous' adapter. Available adapters are: abstract, fake, mysql2, postgresql, sqlite3, trilogy. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile if it's not in the list of available adapters.", error.message
2020
end
2121

2222
# The abstract adapter is used simply to bypass the bit of code that

0 commit comments

Comments
 (0)