We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c75e89 + 20df1bf commit d5a3b2eCopy full SHA for d5a3b2e
activerecord/lib/active_record/scoping/named.rb
@@ -83,10 +83,6 @@ def default_extensions # :nodoc:
83
# <tt>Shirt.dry_clean_only</tt>. <tt>Shirt.red</tt>, in effect,
84
# represents the query <tt>Shirt.where(color: 'red')</tt>.
85
#
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
- #
90
# Note that this is simply 'syntactic sugar' for defining an actual
91
# class method:
92
0 commit comments