Skip to content

Commit

Permalink
unscoped takes care of named_scopes too
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh authored and fxn committed Nov 21, 2010
1 parent f044d38 commit c8ab399
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activerecord/lib/active_record/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit c8ab399

Please sign in to comment.