Skip to content

Commit 5cd94d9

Browse files
committed
Do not attempt to resolve an adapter_class if no adapter is present
1 parent 22a26d7 commit 5cd94d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/database_configurations/database_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DatabaseConfig # :nodoc:
1010

1111
def self.new(...)
1212
instance = super
13-
instance.adapter_class # Ensure resolution happens early
13+
instance.adapter_class if instance.adapter # Ensure resolution happens early
1414
instance
1515
end
1616

0 commit comments

Comments
 (0)