1
0
Fork 0
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:
Eugene Kenny 2022-03-05 14:38:54 +00:00
parent 61bbcb71d5
commit e3fd639fea

View file

@ -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