diff options
author | Shia <rise.shia@gmail.com> | 2017-05-04 12:47:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-04 12:47:05 +0900 |
commit | 66cd83d9b959d4c71d429832896a05078d536cde (patch) | |
tree | 6406be29bba999ae5513c3180571d611cff66e60 /guides/rails_guides | |
parent | aed797eb57fe712d77c327143fafcfce56863d05 (diff) | |
download | rails-66cd83d9b959d4c71d429832896a05078d536cde.tar.gz rails-66cd83d9b959d4c71d429832896a05078d536cde.tar.bz2 rails-66cd83d9b959d4c71d429832896a05078d536cde.zip |
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
Diffstat (limited to 'guides/rails_guides')
-rw-r--r-- | guides/rails_guides/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |