mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
:nodoc:s #unscoped until its behavior is more clear, now sometimes works, sometimes not
This commit is contained in:
@@ -881,7 +881,7 @@ module ActiveRecord #:nodoc:
|
||||
#
|
||||
# Post.unscoped.published
|
||||
# Post.published
|
||||
def unscoped
|
||||
def unscoped #:nodoc:
|
||||
block_given? ? relation.scoping { yield } : relation
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user