instance method
html_safe_translation_keys
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18 PrivateSignature
html_safe_translation_keys(keys, translations)
No documentation comment.
Parameters
-
keysreq -
translationsreq
Source
# File actionpack/lib/action_view/helpers/translation_helper.rb, line 56
def html_safe_translation_keys(keys, translations)
keys.zip(translations).map do |key, translation|
if key =~ /(\b|_|\.)html$/ && translation.respond_to?(:html_safe)
translation.html_safe
else
translation
end
end
end
Defined in actionpack/lib/action_view/helpers/translation_helper.rb line 56
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::TranslationHelper