From 1c68e55ae5e90b7c072a1f6030ea3dd4becd8a07 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Mon, 22 Nov 2010 17:32:15 -0500 Subject: [PATCH] Revert "unscoped takes care of named_scopes too" This reverts commit 126fbd7ed8a310bf940414c1b7ddab06b03d400e. --- activerecord/lib/active_record/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index d7a71014045bc..f588475bbf530 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -856,7 +856,8 @@ def arel_engine # limit(10) # Fires "SELECT * FROM posts LIMIT 10" # } # - # Assuming that published is a named_scope following two statements are same. + # It is recommended to use block form of unscoped because chaining unscoped with named_scope + # does not work. Assuming that published is a named_scope following two statements are same. # # Post.unscoped.published # Post.published