Skip to content

Commit a379529

Browse files
committed
Ensure string when checking for importer keys
1 parent a31d67a commit a379529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dry/system/importer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def [](name)
5050

5151
# @api private
5252
def key?(name)
53-
registry.key?(name)
53+
registry.key?(name.to_s)
5454
end
5555
alias_method :namespace?, :key?
5656

0 commit comments

Comments
 (0)