method

html_safe_translation

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: HtmlSafeTranslation
html_safe_translation(translation) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/html_safe_translation.rb, line 45
      def html_safe_translation(translation)
        if translation.respond_to?(:map)
          translation.map { |element| element.respond_to?(:html_safe) ? element.html_safe : element }
        else
          translation.respond_to?(:html_safe) ? translation.html_safe : translation
        end
      end
Register or log in to add new notes.