Skip to content

Commit 6bb8789

Browse files
committed
Modified the comment to rightly indicate the error being raised is InvalidFind and not InvalidOptions
1 parent d2fcc26 commit 6bb8789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mongoid/criteria/findable.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ def multi_args?(args)
169169
args.size > 1 || !args.first.is_a?(Hash) && args.first.resizable?
170170
end
171171

172-
# Convenience method of raising an invalid options error.
172+
# Convenience method of raising an invalid find error.
173173
#
174174
# @example Raise the error.
175175
# criteria.raise_invalid
176176
#
177-
# @raise [ Errors::InvalidOptions ] The error.
177+
# @raise [ Errors::InvalidFind ] The error.
178178
def raise_invalid
179179
raise Errors::InvalidFind.new
180180
end

0 commit comments

Comments
 (0)