aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2019-03-12 16:22:22 +0530
committerVipul A M <vipulnsward@gmail.com>2019-03-12 16:22:22 +0530
commitbb8fe3701a291a53eabcae110e5f4746cdda973c (patch)
tree006e4a7ea70721b24c5ecba406b44c64686f4fa6 /guides/rails_guides
parentc5979e7bea40f77a66c10169a1a3ced56d64241c (diff)
downloadrails-bb8fe3701a291a53eabcae110e5f4746cdda973c.tar.gz
rails-bb8fe3701a291a53eabcae110e5f4746cdda973c.tar.bz2
rails-bb8fe3701a291a53eabcae110e5f4746cdda973c.zip
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
Diffstat (limited to 'guides/rails_guides')
-rw-r--r--guides/rails_guides/generator.rb2
1 files changed, 1 insertions, 1 deletions
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,