aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-05-11 00:31:43 -0700
committerJon Leighton <j@jonathanleighton.com>2011-05-11 00:31:43 -0700
commit6d51f9b98c39e13422ba321d2d5e18734895ebb2 (patch)
treec22c2dbc8fcad5010f18c9a2097bf3d52f38ec63 /activerecord/lib/active_record
parent4a6855e183707704038905b4e27cf33808bc5292 (diff)
parent2bfeda3f0905e01bcdebdb8814f6dfb3d95b384c (diff)
downloadrails-6d51f9b98c39e13422ba321d2d5e18734895ebb2.tar.gz
rails-6d51f9b98c39e13422ba321d2d5e18734895ebb2.tar.bz2
rails-6d51f9b98c39e13422ba321d2d5e18734895ebb2.zip
Merge pull request #509 from gucki/master
fix bug in usage example of #unscoped
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/base.rb2
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>