Skip to content

Commit 99065d2

Browse files
authored
Merge pull request rails#47445 from zzak/quickfix-guides
Fix guides generator
2 parents 81e6831 + 1be5e79 commit 99065d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/rails_guides/generator.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def initialize(edge:, version:, all:, only:, epub:, language:, direction: nil)
2626
@epub = epub
2727
@language = language
2828
@direction = direction || "ltr"
29+
@view = ActionView::Base.with_empty_template_cache
2930

3031
if @epub
3132
register_special_mime_types
@@ -132,7 +133,7 @@ def generate_guide(guide, output_file)
132133
puts "Generating #{guide} as #{output_file}"
133134
layout = @epub ? "epub/layout" : "layout"
134135

135-
view = ActionView::Base.with_empty_template_cache.with_view_paths(
136+
view = @view.with_view_paths(
136137
[@source_dir],
137138
edge: @edge,
138139
version: @version,

0 commit comments

Comments
 (0)