Module: I18n
- Defined in:
- lib/delocalize/i18n_ext.rb
Class Method Summary collapse
- .delocalization_disabled? ⇒ Boolean
- .delocalization_enabled? ⇒ Boolean
- .with_delocalization_disabled(&block) ⇒ Object
- .with_delocalization_enabled(&block) ⇒ Object
Class Method Details
.delocalization_disabled? ⇒ Boolean
12 13 14 |
# File 'lib/delocalize/i18n_ext.rb', line 12 def delocalization_disabled? !delocalization_enabled? end |
.delocalization_enabled? ⇒ Boolean
8 9 10 |
# File 'lib/delocalize/i18n_ext.rb', line 8 def delocalization_enabled? !!I18n.enable_delocalization end |