:nodoc:s #unscoped until its behavior is more clear, now sometimes works, sometimes not

This commit is contained in:
Xavier Noria
2010-08-25 01:05:51 +02:00
parent 5deeb43fca
commit 30dcac2926

View File

@@ -881,7 +881,7 @@ module ActiveRecord #:nodoc:
#
# Post.unscoped.published
# Post.published
def unscoped
def unscoped #:nodoc:
block_given? ? relation.scoping { yield } : relation
end