Skip to content

Commit 6291585

Browse files
authored
MONGOID-5506 update unscoped docs on mongoid 9 (#5484)
* MONGOID-5506 update unscoped docs on mongoid 9 * Update lib/mongoid/scopable.rb
1 parent 004dde7 commit 6291585

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/mongoid/scopable.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,18 @@ def scoped(options = nil)
158158
queryable.scoped(options)
159159
end
160160

161-
# Get the criteria without the default scoping applied.
161+
# Get the criteria without any scoping applied.
162162
#
163163
# @example Get the unscoped criteria.
164164
# Band.unscoped
165165
#
166-
# @example Yield to block with no default scoping.
166+
# @example Yield to block with no scoping.
167167
# Band.unscoped do
168168
# Band.where(name: "Depeche Mode")
169169
# end
170170
#
171-
# @note This will force the default scope to be removed.
171+
# @note This will force the default scope, as well as any scope applied
172+
# using ``.with_scope``, to be removed.
172173
#
173174
# @return [ Criteria | Object ] The unscoped criteria or result of the
174175
# block.

0 commit comments

Comments
 (0)