From 62463d11b8ecb9fe5987776e58eee644c0ad96b2 Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Sun, 1 Jul 2012 15:53:27 -0500 Subject: remove :nodoc: of AR::Scoping#unscoped [ci skip] --- activerecord/lib/active_record/scoping/default.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activerecord/lib/active_record/scoping/default.rb b/activerecord/lib/active_record/scoping/default.rb index af51c803a7..b35fec7920 100644 --- a/activerecord/lib/active_record/scoping/default.rb +++ b/activerecord/lib/active_record/scoping/default.rb @@ -31,14 +31,14 @@ module ActiveRecord # Post.limit(10) # Fires "SELECT * FROM posts LIMIT 10" # } # - # It is recommended that you use the block form of unscoped because chaining - # unscoped with scope does not work. Assuming that + # It is recommended that you use the block form of unscoped because + # chaining unscoped with scope does not work. Assuming that # published is a scope, the following two statements - # are equal: the default_scope is applied on both. + # are equal: the default_scope is applied on both. # # Post.unscoped.published # Post.published - def unscoped #:nodoc: + def unscoped block_given? ? relation.scoping { yield } : relation end -- cgit v1.2.3