mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix invalid syntax in all_queries example [ci skip]
This commit is contained in:
parent
61bbcb71d5
commit
e3fd639fea
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ module ActiveRecord
|
|||
# <tt>all_queries: true</tt>:
|
||||
#
|
||||
# class Article < ActiveRecord::Base
|
||||
# default_scope { where(blog_id: 1) }, all_queries: true
|
||||
# default_scope -> { where(blog_id: 1) }, all_queries: true
|
||||
# end
|
||||
#
|
||||
# Applying a default scope to all queries will ensure that records
|
||||
|
|
Loading…
Reference in a new issue