Skip to content

Commit 08813dd

Browse files
committed
Revert "Short circuit the scoping delegation for relation.all"
This reverts commit eb80738. If the current scope is affected by the `unscoped` block, `all` won't be the same with `spawn`.
1 parent 5e55c80 commit 08813dd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

activerecord/lib/active_record/relation/spawn_methods.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module SpawnMethods
1010
def spawn #:nodoc:
1111
clone
1212
end
13-
alias :all :spawn
1413

1514
# Merges in the conditions from <tt>other</tt>, if <tt>other</tt> is an ActiveRecord::Relation.
1615
# Returns an array representing the intersection of the resulting records with <tt>other</tt>, if <tt>other</tt> is an array.

0 commit comments

Comments
 (0)