Skip to content

Commit c65ad55

Browse files
committed
MONGOID-5506 Update 8.x docs to document unscoped behavior changing in 9.0 (#5483)
* MONGOID-5506 Update 8.x docs to document unscoped behavior changing in 9.0 * Update lib/mongoid/scopable.rb
1 parent 3ee2ad2 commit c65ad55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/mongoid/scopable.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ def scoped(options = nil)
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 to be removed, but will not
172+
# remove scopes declared with ``.with_scope``. This will be changed
173+
# in Mongoid 9.
172174
#
173175
# @return [ Criteria | Object ] The unscoped criteria or result of the
174176
# block.

0 commit comments

Comments
 (0)