Module: I18nLazyScope::ActionView::Helper
- Defined in:
- lib/i18n_lazy_scope/action_view/helper.rb
Instance Method Summary collapse
Instance Method Details
#lazy_scope(key) ⇒ Object
7 8 9 |
# File 'lib/i18n_lazy_scope/action_view/helper.rb', line 7 def lazy_scope(key) [:views, view_path] end |
#t_scoped(key, **args) ⇒ Object
3 4 5 |
# File 'lib/i18n_lazy_scope/action_view/helper.rb', line 3 def t_scoped(key, **args) t(key, scope: lazy_scope(key), **args) end |