Module: I18nHelper

Defined in:
app/helpers/i18n_helper.rb

Instance Method Summary collapse

Instance Method Details

#plural(count, single, plural2 = nil, _plural5 = nil) ⇒ Object


2
3
4
5
6
7
8
# File 'app/helpers/i18n_helper.rb', line 2

def plural(count, single, plural2 = nil, _plural5 = nil)
  if count == 1
    single
  else
    plural2 || single.pluralize
  end
end