Skip to content

Commit

Permalink
Revert "unscoped takes care of named_scopes too"
Browse files Browse the repository at this point in the history
This reverts commit 126fbd7.
  • Loading branch information
Neeraj Singh committed Nov 22, 2010
1 parent 7b503f0 commit 1c68e55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/lib/active_record/base.rb
Expand Up @@ -856,7 +856,8 @@ def arel_engine
# limit(10) # Fires "SELECT * FROM posts LIMIT 10" # 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.unscoped.published
# Post.published # Post.published
Expand Down

0 comments on commit 1c68e55

Please sign in to comment.