Permalink
Browse files

Merge pull request #509 from gucki/master

fix bug in usage example of #unscoped
  • Loading branch information...
jonleighton committed May 11, 2011
2 parents 4a6855e + 2bfeda3 commit 6d51f9b98c39e13422ba321d2d5e18734895ebb2
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
@@ -895,7 +895,7 @@ def arel_engine
# not use the default_scope:
#
# Post.unscoped {
- # limit(10) # Fires "SELECT * FROM posts LIMIT 10"
+ # Post.limit(10) # Fires "SELECT * FROM posts LIMIT 10"
# }
#
# It is recommended to use block form of unscoped because chaining unscoped with <tt>scope</tt>

0 comments on commit 6d51f9b

Please sign in to comment.