Skip to content

Commit 8aa174f

Browse files
p-mongop
andauthored
Reference correct method name in docstring example (#5453)
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent b7e2d87 commit 8aa174f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongoid/scopable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def without_default_scope
238238
# @api private
239239
#
240240
# @example Warn or raise error if name exists.
241-
# Model.valid_scope_name?("test")
241+
# Model.check_scope_name("test")
242242
#
243243
# @param [ String | Symbol ] name The name of the scope.
244244
#

0 commit comments

Comments
 (0)