instance method scope_prefix

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

scope_prefix()

No documentation comment.

Source
# File actionview/lib/action_view/helpers/translation_helper.rb, line 136
        def scope_prefix
          @_scope_key_by_partial_cache ||= {}
          @_scope_key_by_partial_cache[@virtual_path] ||= @virtual_path.gsub(%r{/_?}, ".")
        end

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

Defined in ActionView::Helpers::TranslationHelper

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close