aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-08-25 01:05:51 +0200
committerXavier Noria <fxn@hashref.com>2010-08-25 01:05:51 +0200
commit3ac6646d6f9ad978e8f245883b6227499785bf3e (patch)
tree37e0152663ffe4d1871a4175abab4f4b9f1e362a /activerecord
parenta820bd9df6476540edb58e32fe88a142a38a8e0b (diff)
downloadrails-3ac6646d6f9ad978e8f245883b6227499785bf3e.tar.gz
rails-3ac6646d6f9ad978e8f245883b6227499785bf3e.tar.bz2
rails-3ac6646d6f9ad978e8f245883b6227499785bf3e.zip
:nodoc:s #unscoped until its behavior is more clear, now sometimes works, sometimes not
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 4bbf5cd3d1..a73a9d5fef 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -881,7 +881,7 @@ module ActiveRecord #:nodoc:
#
# Post.unscoped.published
# Post.published
- def unscoped
+ def unscoped #:nodoc:
block_given? ? relation.scoping { yield } : relation
end