Method: ActiveSupport::Inflector#pluralize

Defined in:
lib/active_support/inflector/methods.rb

#pluralize(word) ⇒ Object

Returns the plural form of the word in the string.

Examples:

"post".pluralize             # => "posts"
"octopus".pluralize          # => "octopi"
"sheep".pluralize            # => "sheep"
"words".pluralize            # => "words"
"CamelOctopus".pluralize     # => "CamelOctopi"


24
25
26
# File 'lib/active_support/inflector/methods.rb', line 24

def pluralize(word)
  apply_inflections(word, inflections.plurals)
end