Sha256: 178a3b67ecb87d4572f0de68f84dad02315f0be056b56edc1994cc790e2bfd0d

Contents?: true

Size: 275 Bytes

Versions: 41

Compression:

Stored size: 275 Bytes

Contents

# frozen_string_literal: true

module Tramway
  module Admin
    module CasesHelper
      def plural(word)
        if I18n.locale == :ru
          russian_plural word
        else
          word.model_name.human.pluralize(I18n.locale)
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
tramway-admin-1.21 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.20.3 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.20.2.4 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.20.2.3 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.20.2.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.20.2.1 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.20.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.20.1 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.20 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.19.0.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.19.0.1 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.19 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.18.4.4 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.18.4.3 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.18.4.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.18.4.1 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.18.4 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.18.3 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.18.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.18.1.1 app/helpers/tramway/admin/cases_helper.rb