We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d84d2c9 + c32a07f commit 710465fCopy full SHA for 710465f
1 file changed
lib/mongo/deprecations.rb
@@ -81,7 +81,7 @@ def warned_features(reset: false)
81
# @return [ true | false ] If a warning has already been issued.
82
def _warned?(feature, prefix: false)
83
if prefix
84
- warned_features.any? { |f| feature.to_s.start_with?(f) }
+ warned_features.any? { |f| f.to_s.start_with?(feature) }
85
else
86
warned_features.include?(feature.to_s)
87
end
0 commit comments