diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-01-23 14:19:50 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-06 16:52:15 -0800 |
commit | f9bea6304dfba902b1937b3bc29b1ebc2f67e55b (patch) | |
tree | 4859079e3b5c7055fb3b0b8b21bea08cd60de3f6 /actionview/test/activerecord/multifetch_cache_test.rb | |
parent | 9483cdee0a3ed9c686e338f079b0e369597b1211 (diff) | |
download | rails-f9bea6304dfba902b1937b3bc29b1ebc2f67e55b.tar.gz rails-f9bea6304dfba902b1937b3bc29b1ebc2f67e55b.tar.bz2 rails-f9bea6304dfba902b1937b3bc29b1ebc2f67e55b.zip |
Move templates to an anonymous subclass of AV::Base
Now we can throw away the subclass and the generated methods will get
GC'd too
Diffstat (limited to 'actionview/test/activerecord/multifetch_cache_test.rb')
-rw-r--r-- | actionview/test/activerecord/multifetch_cache_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionview/test/activerecord/multifetch_cache_test.rb b/actionview/test/activerecord/multifetch_cache_test.rb index 229b4e56d0..f56168bda5 100644 --- a/actionview/test/activerecord/multifetch_cache_test.rb +++ b/actionview/test/activerecord/multifetch_cache_test.rb @@ -10,8 +10,10 @@ class MultifetchCacheTest < ActiveRecordTestCase def setup view_paths = ActionController::Base.view_paths + view_paths.each(&:clear_cache) + ActionView::LookupContext.fallbacks.each(&:clear_cache) - @view = Class.new(ActionView::Base) do + @view = Class.new(ActionView::Base.with_empty_template_cache) do def view_cache_dependencies [] end |