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.26.1.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.26.1.1 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.26.1 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.26 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.25 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.24.0.3 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.24.0.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.24.0.1 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.24 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.23.0.3 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.23.0.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.23.0.1 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.23 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.22.0.4 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.22.0.3 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.22.0.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.22.0.1 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.22 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.21.2 app/helpers/tramway/admin/cases_helper.rb
tramway-admin-1.21.1 app/helpers/tramway/admin/cases_helper.rb