Module: String::StringExtensions

Included in:
String
Defined in:
lib/rails_extensions/string.rb

Overview

module to override basic String methods

Instance Method Summary collapse

Instance Method Details

#pluralize(count = nil, locale = :en) ⇒ Object



25
26
27
28
29
# File 'lib/rails_extensions/string.rb', line 25

def pluralize(count = nil, locale = :en)
  return dup if count == 0

  super(count, locale)
end