From 66cd83d9b959d4c71d429832896a05078d536cde Mon Sep 17 00:00:00 2001 From: Shia Date: Thu, 4 May 2017 12:47:05 +0900 Subject: Use target language's document.yaml [ci skip] Let me build guide with "ko" language, Before: - It try to use guides/source/documents.yaml After: - It try to use guides/source/ko/documents.yaml --- guides/rails_guides/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/rails_guides/helpers.rb b/guides/rails_guides/helpers.rb index 6f4b0b492c..2a193ca6b5 100644 --- a/guides/rails_guides/helpers.rb +++ b/guides/rails_guides/helpers.rb @@ -15,7 +15,7 @@ module RailsGuides end def documents_by_section - @documents_by_section ||= YAML.load_file(File.expand_path("../../source/#{@lang ? @lang + '/' : ''}documents.yaml", __FILE__)) + @documents_by_section ||= YAML.load_file(File.expand_path("../../source/#{@language ? @language + '/' : ''}documents.yaml", __FILE__)) end def documents_flat -- cgit v1.2.3