instance method
scope_prefix
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
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