aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-07-01 15:53:27 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-07-01 15:53:27 -0500
commit62463d11b8ecb9fe5987776e58eee644c0ad96b2 (patch)
tree7378d56dc8d397d6ef97131c5ef8e7cac8fa3fbb
parent0149a6eef9ab9201db8b48efeea35c46125a84f0 (diff)
downloadrails-62463d11b8ecb9fe5987776e58eee644c0ad96b2.tar.gz
rails-62463d11b8ecb9fe5987776e58eee644c0ad96b2.tar.bz2
rails-62463d11b8ecb9fe5987776e58eee644c0ad96b2.zip
remove :nodoc: of AR::Scoping#unscoped [ci skip]
-rw-r--r--activerecord/lib/active_record/scoping/default.rb8
1 files 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 <tt>scope</tt> does not work. Assuming that
+ # It is recommended that you use the block form of unscoped because
+ # chaining unscoped with <tt>scope</tt> does not work. Assuming that
# <tt>published</tt> is a <tt>scope</tt>, the following two statements
- # are equal: the default_scope is applied on both.
+ # are equal: the <tt>default_scope</tt> is applied on both.
#
# Post.unscoped.published
# Post.published
- def unscoped #:nodoc:
+ def unscoped
block_given? ? relation.scoping { yield } : relation
end