Skip to content

Commit

Permalink
fix typo in method name
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Aug 29, 2023
1 parent 470a10d commit 11c9c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid/contextual/mongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ def valid_for_count_documents?(hash = view.filter)
# representations of `$where`.
hash.keys.each do |key|
return false if key == '$where'
return false if hash[key].is_a?(Hash) && !valid_for_count_documents(hash[key])
return false if hash[key].is_a?(Hash) && !valid_for_count_documents?(hash[key])
end

true
Expand Down

0 comments on commit 11c9c58

Please sign in to comment.