Module: Tramway::CasesHelper
- Defined in:
- app/helpers/tramway/cases_helper.rb
Instance Method Summary collapse
Instance Method Details
#plural(word) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/tramway/cases_helper.rb', line 4 def plural(word) if I18n.locale == :ru russian_plural word elsif word.respond_to?(:model_name) word.model_name.human.pluralize(I18n.locale) else word.human.pluralize(I18n.locale) end end |