Skip to content
This repository
Browse code

unscoped takes care of named_scopes too

  • Loading branch information...
commit c8ab3992f85569e43055b9e57c67324f5d5088cd 1 parent f044d38
Neeraj Singh authored November 17, 2010 fxn committed November 21, 2010

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  activerecord/lib/active_record/base.rb
3  activerecord/lib/active_record/base.rb
@@ -852,8 +852,7 @@ def arel_engine
852 852
       #     limit(10) # Fires "SELECT * FROM posts LIMIT 10"
853 853
       #   }
854 854
       #
855  
-      # It is recommended to use block form of unscoped because chaining unscoped with <tt>named_scope</tt>
856  
-      # does not work. Assuming that <tt>published</tt> is a <tt>named_scope</tt> following two statements are same.
  855
+      # Assuming that <tt>published</tt> is a <tt>named_scope</tt> following two statements are same.
857 856
       #
858 857
       # Post.unscoped.published
859 858
       # Post.published

0 notes on commit c8ab399

Please sign in to comment.
Something went wrong with that request. Please try again.