diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-01-28 14:55:12 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-01-28 14:55:12 -0800 |
commit | 5bb1ad59b1fea70c82d0a3b654ef81a0a31c715c (patch) | |
tree | 53a30bf40ad55ed570cb0a5066e949cd05d915f6 /activerecord | |
parent | 793455e594dc98ea026c7665dd0de3ae8829cf73 (diff) | |
download | rails-5bb1ad59b1fea70c82d0a3b654ef81a0a31c715c.tar.gz rails-5bb1ad59b1fea70c82d0a3b654ef81a0a31c715c.tar.bz2 rails-5bb1ad59b1fea70c82d0a3b654ef81a0a31c715c.zip |
Pull `@template` in to a local variable
This gets the PartialRenderer to be a bit closer to the
TemplateRenderer. TemplateRenderer already keeps its template in a
local variable.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railties/collection_cache_association_loading.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 4ef19f0929..dfaac4eefb 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 |