Permalink
Browse files

fix typo app -> all

Thank you @bquorning
  • Loading branch information...
1 parent 2443488 commit 3f1699a780de5cd0c3433bc3427cc43f08f77040 @dmathieu dmathieu committed Mar 7, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/scoping/default.rb
View
2 activerecord/lib/active_record/scoping/default.rb
@@ -21,7 +21,7 @@ module ClassMethods
#
# 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.

0 comments on commit 3f1699a

Please sign in to comment.