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