aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-11-17 21:46:55 -0500
committerXavier Noria <fxn@hashref.com>2010-11-21 03:29:43 +0100
commitc8ab3992f85569e43055b9e57c67324f5d5088cd (patch)
treec2f8c50cd6e5e6856c82fc3f3b8b4b73b546af3c /activerecord/lib/active_record
parentf044d38192dab10ccdf6556e2bb3b9c90a912fbe (diff)
downloadrails-c8ab3992f85569e43055b9e57c67324f5d5088cd.tar.gz
rails-c8ab3992f85569e43055b9e57c67324f5d5088cd.tar.bz2
rails-c8ab3992f85569e43055b9e57c67324f5d5088cd.zip
unscoped takes care of named_scopes too
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/base.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index aee6f3a7eb..aa028c6f36 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -852,8 +852,7 @@ module ActiveRecord #:nodoc:
# limit(10) # Fires "SELECT * FROM posts LIMIT 10"
# }
#
- # It is recommended to use block form of unscoped because chaining unscoped with <tt>named_scope</tt>
- # does not work. Assuming that <tt>published</tt> is a <tt>named_scope</tt> following two statements are same.
+ # Assuming that <tt>published</tt> is a <tt>named_scope</tt> following two statements are same.
#
# Post.unscoped.published
# Post.published