From bb8fe3701a291a53eabcae110e5f4746cdda973c Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Tue, 12 Mar 2019 16:22:22 +0530 Subject: After https://github.com/rails/rails/pull/35281 and https://github.com/rails/rails/pull/35036 AV warns about not having the compiled container. Use the suggested with_empty_template_cache to overcome warning --- guides/rails_guides/generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') diff --git a/guides/rails_guides/generator.rb b/guides/rails_guides/generator.rb index b0ddb0e7e0..c3b77aa7bb 100644 --- a/guides/rails_guides/generator.rb +++ b/guides/rails_guides/generator.rb @@ -150,7 +150,7 @@ module RailsGuides puts "Generating #{guide} as #{output_file}" layout = @kindle ? "kindle/layout" : "layout" - view = ActionView::Base.with_view_paths( + view = ActionView::Base.with_empty_template_cache.with_view_paths( [@source_dir], edge: @edge, version: @version, -- cgit v1.2.3