aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-11-22 17:32:15 -0500
committerNeeraj Singh <neerajdotname@gmail.com>2010-11-22 17:32:15 -0500
commit1c68e55ae5e90b7c072a1f6030ea3dd4becd8a07 (patch)
treecb2dd2e6c34cf772890aa92ba596f43b4cfaa420 /activerecord/lib
parent7b503f02ca2a8ac46e17e447b92d4a68fcc4a356 (diff)
downloadrails-1c68e55ae5e90b7c072a1f6030ea3dd4becd8a07.tar.gz
rails-1c68e55ae5e90b7c072a1f6030ea3dd4becd8a07.tar.bz2
rails-1c68e55ae5e90b7c072a1f6030ea3dd4becd8a07.zip
Revert "unscoped takes care of named_scopes too"
This reverts commit 126fbd7ed8a310bf940414c1b7ddab06b03d400e.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/base.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index d7a7101404..f588475bbf 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -856,7 +856,8 @@ module ActiveRecord #:nodoc:
# limit(10) # Fires "SELECT * FROM posts LIMIT 10"
# }
#
- # Assuming that <tt>published</tt> is a <tt>named_scope</tt> following two statements are same.
+ # 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.
#
# Post.unscoped.published
# Post.published