1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix typo app -> all

Thank you @bquorning
This commit is contained in:
dmathieu 2014-03-07 15:06:20 +01:00
parent 24434880d9
commit 3f1699a780

View file

@ -21,7 +21,7 @@ module ActiveRecord
#
# Post.all # Fires "SELECT * FROM posts WHERE published = true"
# Post.unscoped.all # Fires "SELECT * FROM posts"
# Post.where(published: false).unscoped.app # Fires "SELECT * FROM posts"
# Post.where(published: false).unscoped.all # Fires "SELECT * FROM posts"
#
# This method also accepts a block. All queries inside the block will
# not use the previously set scopes.