mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #38983 from nimish-mehta/update-scope-documentation
Update scope documentation [ci skip]
This commit is contained in:
commit
d5a3b2e427
1 changed files with 0 additions and 4 deletions
|
@ -83,10 +83,6 @@ module ActiveRecord
|
|||
# <tt>Shirt.dry_clean_only</tt>. <tt>Shirt.red</tt>, in effect,
|
||||
# represents the query <tt>Shirt.where(color: 'red')</tt>.
|
||||
#
|
||||
# You should always pass a callable object to the scopes defined
|
||||
# with #scope. This ensures that the scope is re-evaluated each
|
||||
# time it is called.
|
||||
#
|
||||
# Note that this is simply 'syntactic sugar' for defining an actual
|
||||
# class method:
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue