Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

unscoped takes care of named_scopes too

  • Loading branch information...
commit c8ab3992f85569e43055b9e57c67324f5d5088cd 1 parent f044d38
@neerajdotname neerajdotname authored fxn committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  activerecord/lib/active_record/base.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.