method

scope_keys_by_partial

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.

scope_keys_by_partial(keys)
private

No documentation available.

# File actionpack/lib/action_view/helpers/translation_helper.rb, line 44
        def scope_keys_by_partial(keys)
          Array.wrap(keys).map do |key|
            key = key.to_s

            if key.first == "."
              template.path_without_format_and_extension.gsub(%r{/_?}, ".") + key
            else
              key
            end
          end
        end