Skip to content

Commit e83cfa5

Browse files
authored
Merge pull request rails#53291 from smasato/fix-typo-in-connection_adapters
Fix typo in `connection_adapters.rb` [skip ci]
2 parents fdeba4a + 39225f1 commit e83cfa5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activerecord/lib/active_record/connection_adapters.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def resolve(adapter_name) # :nodoc:
3939

4040
begin
4141
require legacy_adapter_path
42-
# If we reach here it means we found the found a file that may be the legacy adapter and should raise.
42+
# If we reach here it means we found the file that may be the legacy adapter and should raise.
4343
if ActiveRecord::ConnectionHandling.method_defined?(legacy_adapter_connection_method_name)
44-
# If we find the connection method then we care certain it is a legacy adapter.
44+
# If we find the connection method then we are certain it is a legacy adapter.
4545
deprecation_message = <<~MSG.squish
4646
Database configuration specifies '#{adapter_name}' adapter but that adapter has not been registered.
4747
Rails 7.2 has changed the way Active Record database adapters are loaded. The adapter needs to be
@@ -59,7 +59,7 @@ def resolve(adapter_name) # :nodoc:
5959
MSG
6060
else
6161
# If we do not find the connection method we are much less certain it is a legacy adapter. Even though the
62-
# file exists in the location defined by convenntion, it does not necessarily mean that file is supposed
62+
# file exists in the location defined by convention, it does not necessarily mean that file is supposed
6363
# to define the adapter the legacy way. So raise an error that explains both possibilities.
6464
deprecation_message = <<~MSG.squish
6565
Database configuration specifies nonexistent '#{adapter_name}' adapter.

0 commit comments

Comments
 (0)