method

html_safe_translation_keys

rails latest stable - Class: ActionView::Helpers::TranslationHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

html_safe_translation_keys(keys, translations)
private

No documentation available.

# 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