Skip to content
Browse files

Revert "unscoped takes care of named_scopes too"

This reverts commit 126fbd7.
  • Loading branch information...
1 parent 539e46d commit 30b3a14c2b24d25b38a259d582346b6402c12931 Neeraj Singh committed with fxn Nov 22, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/base.rb
View
3 activerecord/lib/active_record/base.rb
@@ -876,7 +876,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 30b3a14

Please sign in to comment.
Something went wrong with that request. Please try again.