Permalink
Browse files

unscoped takes care of named_scopes too

  • Loading branch information...
1 parent ff69c80 commit a1786cfe6b9368b20733bb8650d815e50d95b59b Neeraj Singh committed with fxn Nov 18, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/base.rb
@@ -876,8 +876,7 @@ def arel_engine
# 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

0 comments on commit a1786cf

Please sign in to comment.