aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides
diff options
context:
space:
mode:
authorShia <rise.shia@gmail.com>2017-05-04 12:47:05 +0900
committerGitHub <noreply@github.com>2017-05-04 12:47:05 +0900
commit66cd83d9b959d4c71d429832896a05078d536cde (patch)
tree6406be29bba999ae5513c3180571d611cff66e60 /guides/rails_guides
parentaed797eb57fe712d77c327143fafcfce56863d05 (diff)
downloadrails-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.rb2
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