Skip to content

Commit d5a3b2e

Browse files
authored
Merge pull request rails#38983 from nimish-mehta/update-scope-documentation
Update scope documentation [ci skip]
2 parents 4c75e89 + 20df1bf commit d5a3b2e

File tree

1 file changed

+0
-4
lines changed
  • activerecord/lib/active_record/scoping

1 file changed

+0
-4
lines changed

activerecord/lib/active_record/scoping/named.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ def default_extensions # :nodoc:
8383
# <tt>Shirt.dry_clean_only</tt>. <tt>Shirt.red</tt>, in effect,
8484
# represents the query <tt>Shirt.where(color: 'red')</tt>.
8585
#
86-
# You should always pass a callable object to the scopes defined
87-
# with #scope. This ensures that the scope is re-evaluated each
88-
# time it is called.
89-
#
9086
# Note that this is simply 'syntactic sugar' for defining an actual
9187
# class method:
9288
#

0 commit comments

Comments
 (0)