Module: RedmineNonprojectModules::Patches::Redmine::I18nPatch
- Defined in:
- lib/redmine_nonproject_modules/patches/redmine/i18n_patch.rb
Instance Method Summary collapse
Instance Method Details
#fixed_l(*args) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/redmine_nonproject_modules/patches/redmine/i18n_patch.rb', line 14 def fixed_l(*args) if (args.first.is_a?(Time) || args.first.is_a?(Date)) && args.last.is_a?(Hash) ::I18n.l(args.first, args.last) else original_l(*args) end end |