instance method scope_keys_by_partial

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18 Private

Signature

scope_keys_by_partial(keys)

No documentation comment.

Parameters

keys req
Source
# 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

Defined in actionpack/lib/action_view/helpers/translation_helper.rb line 44 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Helpers::TranslationHelper

Type at least 2 characters to search.

↑↓ navigate · open · esc close