From 08813dd62a0ae4061774511dfc8a7fc0384d6528 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Thu, 19 Jul 2018 07:54:31 +0900 Subject: Revert "Short circuit the scoping delegation for `relation.all`" This reverts commit eb807384c81a6e086b17a576755e992e6c4c685e. If the current scope is affected by the `unscoped` block, `all` won't be the same with `spawn`. --- activerecord/lib/active_record/relation/spawn_methods.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/relation/spawn_methods.rb b/activerecord/lib/active_record/relation/spawn_methods.rb index b092399657..562e04194c 100644 --- a/activerecord/lib/active_record/relation/spawn_methods.rb +++ b/activerecord/lib/active_record/relation/spawn_methods.rb @@ -10,7 +10,6 @@ module ActiveRecord def spawn #:nodoc: clone end - alias :all :spawn # Merges in the conditions from other, if other is an ActiveRecord::Relation. # Returns an array representing the intersection of the resulting records with other, if other is an array. -- cgit v1.2.3