aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-07-19 07:54:31 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-07-19 07:54:31 +0900
commit08813dd62a0ae4061774511dfc8a7fc0384d6528 (patch)
tree0acac6f9a7dcc225df62abd0472a33680ac4b8d1 /activerecord
parent5e55c80529071ae474eaeaaa03948294fe6ae637 (diff)
downloadrails-08813dd62a0ae4061774511dfc8a7fc0384d6528.tar.gz
rails-08813dd62a0ae4061774511dfc8a7fc0384d6528.tar.bz2
rails-08813dd62a0ae4061774511dfc8a7fc0384d6528.zip
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`.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/relation/spawn_methods.rb1
1 files changed, 0 insertions, 1 deletions
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 <tt>other</tt>, if <tt>other</tt> is an ActiveRecord::Relation.
# Returns an array representing the intersection of the resulting records with <tt>other</tt>, if <tt>other</tt> is an array.