diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-05-11 00:31:43 -0700 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-05-11 00:31:43 -0700 |
commit | 6d51f9b98c39e13422ba321d2d5e18734895ebb2 (patch) | |
tree | c22c2dbc8fcad5010f18c9a2097bf3d52f38ec63 | |
parent | 4a6855e183707704038905b4e27cf33808bc5292 (diff) | |
parent | 2bfeda3f0905e01bcdebdb8814f6dfb3d95b384c (diff) | |
download | rails-6d51f9b98c39e13422ba321d2d5e18734895ebb2.tar.gz rails-6d51f9b98c39e13422ba321d2d5e18734895ebb2.tar.bz2 rails-6d51f9b98c39e13422ba321d2d5e18734895ebb2.zip |
Merge pull request #509 from gucki/master
fix bug in usage example of #unscoped
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index d07f9365b3..b2e058d746 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -895,7 +895,7 @@ module ActiveRecord #:nodoc: # 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> |