Module: RedmineNonprojectModules::Patches::Redmine::I18nPatch::InstanceMethods

Defined in:
lib/redmine_nonproject_modules/patches/redmine/i18n_patch.rb

Instance Method Summary collapse

Instance Method Details

#l_with_active_scaffold(*args) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/redmine_nonproject_modules/patches/redmine/i18n_patch.rb', line 13

def l_with_active_scaffold(*args)
  if (args.first.is_a?(Time) || args.first.is_a?(Date)) && args.last.is_a?(Hash)
    ::I18n.l(args.first, args.last)
  else
    l_without_active_scaffold(*args)
  end
end