aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-11-17 21:46:55 -0500
committerNeeraj Singh <neerajdotname@gmail.com>2010-11-17 21:46:55 -0500
commit126fbd7ed8a310bf940414c1b7ddab06b03d400e (patch)
tree9f53af7f499309b6f0a5e1d0e3200ed28f30733a /activerecord
parent648568df1a61cf335d8b235487617777dcdea117 (diff)
downloadrails-126fbd7ed8a310bf940414c1b7ddab06b03d400e.tar.gz
rails-126fbd7ed8a310bf940414c1b7ddab06b03d400e.tar.bz2
rails-126fbd7ed8a310bf940414c1b7ddab06b03d400e.zip
unscoped takes care of named_scopes too
Diffstat (limited to 'activerecord')
-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 f588475bbf..d7a7101404 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -856,8 +856,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