Permalink
Browse files

Revert "unscoped takes care of named_scopes too"

This reverts commit 126fbd7.
  • Loading branch information...
1 parent 7b503f0 commit 1c68e55ae5e90b7c072a1f6030ea3dd4becd8a07 Neeraj Singh committed Nov 22, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/base.rb
@@ -856,7 +856,8 @@ def arel_engine
# 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

0 comments on commit 1c68e55

Please sign in to comment.