Skip to content

Commit

Permalink
fix for untranslated chapter titles
Browse files Browse the repository at this point in the history
  • Loading branch information
jakl committed Mar 26, 2014
1 parent 6e13599 commit 48ca612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/phrases_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def index
end

Phrase.find(Phrase.pluck(:id) - @translations.keys).each_with_object(@translations) do |phrase, ret|
ret[phrase.id] = phrase.translations.first
ret[phrase.id] = phrase.translations.first || TranslatedPhrase.new(phrase.key, "en", true)
end
end

Expand Down

0 comments on commit 48ca612

Please sign in to comment.