diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-01-28 14:22:32 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-01-28 14:22:32 -0800 |
commit | e98b51300ab1c58b790cbaf9a27bd277184579ac (patch) | |
tree | 85cf896d40fa0aab8270a8eb8bee93643605d1ae /activerecord/lib | |
parent | bd3bea1598919e177ca6e56d23ae2fc9d8d5e22e (diff) | |
download | rails-e98b51300ab1c58b790cbaf9a27bd277184579ac.tar.gz rails-e98b51300ab1c58b790cbaf9a27bd277184579ac.tar.bz2 rails-e98b51300ab1c58b790cbaf9a27bd277184579ac.zip |
Remove `@view` instance variable from the partial renderer
Similar to 1853b0d0abf87dfdd4c3a277c3badb17ca19652e
Diffstat (limited to 'activerecord/lib')
-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 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 |