Module: SymbolExtensionCustom
- Defined in:
- lib/message_train/localization.rb
Overview
Symbol Extension
Instance Method Summary collapse
Instance Method Details
#l_with_args(*args) ⇒ Object
24 25 26 |
# File 'lib/message_train/localization.rb', line 24 def l_with_args(*args) l(*args).html_safe end |
#localize_with_debugging(*args) ⇒ Object Also known as: l
18 19 20 21 22 |
# File 'lib/message_train/localization.rb', line 18 def localize_with_debugging(*args) = args.first.is_a?(Hash) ? args.first : {} localized_sym = I18n.translate(self, **) localized_sym.is_a?(String) ? localized_sym.html_safe : localized_sym end |