aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorCorin Langosch <corin.langosch@netskin.com>2011-05-11 09:19:12 +0200
committerCorin Langosch <corin.langosch@netskin.com>2011-05-11 09:19:12 +0200
commit2bfeda3f0905e01bcdebdb8814f6dfb3d95b384c (patch)
treec22c2dbc8fcad5010f18c9a2097bf3d52f38ec63 /activerecord/lib/active_record/base.rb
parent4a6855e183707704038905b4e27cf33808bc5292 (diff)
downloadrails-2bfeda3f0905e01bcdebdb8814f6dfb3d95b384c.tar.gz
rails-2bfeda3f0905e01bcdebdb8814f6dfb3d95b384c.tar.bz2
rails-2bfeda3f0905e01bcdebdb8814f6dfb3d95b384c.zip
fix bug in usage example of #unscoped
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-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>