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