Sha256: 1b96f4505c02e37e0f14ff4f340f99ea24da84887983245a6e4ae2487460db0c

Contents?: true

Size: 278 Bytes

Versions: 11

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

require 'active_model/naming'

module ActiveModel
  module Naming
    # @return [String]
    def plural_name
      model_name.human(count: 2)
    end

    # @return [String]
    def singular_name
      model_name.human(count: 1)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
eac_rails_utils-0.25.0 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.24.0 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.23.4 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.23.3 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.23.2 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.23.1 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.23.0 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.22.3 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.22.2 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.22.1 lib/eac_rails_utils/patches/active_model/naming.rb
eac_rails_utils-0.22.0 lib/eac_rails_utils/patches/active_model/naming.rb