fix translation-missing in rails 4 #77

Merged
merged 1 commit into from Feb 6, 2014

Projects

None yet

2 participants

Contributor
niklas commented Feb 6, 2014

In Rails 4, when the TranslationHelper#t fails to find a translation, it tries to render a span.translation_missing using the content_tag helper.

see: https://github.com/rails/rails/blob/c0fb8d0b9c4d55770f7ce1a9cb62e4f2a75ca3ee/actionview/lib/action_view/helpers/translation_helper.rb#L65
(introduced in rails/rails@0c7ac34)

@niklas niklas fix translation-missing in rails 4
In Rails 4, when the TranslationHelper#t fails to find a translation, it tries to render a `span.translation_missing` using the `content_tag` helper.

see: https://github.com/rails/rails/blob/c0fb8d0b9c4d55770f7ce1a9cb62e4f2a75ca3ee/actionview/lib/action_view/helpers/translation_helper.rb#L65
d091b31
@rafaelfranca rafaelfranca merged commit 4c06fd3 into plataformatec:master Feb 6, 2014

1 check passed

default The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment