From e98b51300ab1c58b790cbaf9a27bd277184579ac Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 28 Jan 2019 14:22:32 -0800 Subject: Remove `@view` instance variable from the partial renderer Similar to 1853b0d0abf87dfdd4c3a277c3badb17ca19652e --- .../active_record/railties/collection_cache_association_loading.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record/railties') diff --git a/activerecord/lib/active_record/railties/collection_cache_association_loading.rb b/activerecord/lib/active_record/railties/collection_cache_association_loading.rb index b5129e4239..4ef19f0929 100644 --- a/activerecord/lib/active_record/railties/collection_cache_association_loading.rb +++ b/activerecord/lib/active_record/railties/collection_cache_association_loading.rb @@ -20,12 +20,12 @@ module ActiveRecord end end - def collection_without_template + def collection_without_template(_) @relation.preload_associations(@collection) if @relation super end - def collection_with_template + def collection_with_template(_) @relation.preload_associations(@collection) if @relation super end -- cgit v1.2.3