Permalink
Browse files

unscoped takes care of named_scopes too

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

Please sign in to comment.