Flowdock
apply_inflections(word, rules, locale = :en) private

Applies inflection rules for singularize and pluralize.

If passed an optional locale parameter, the uncountables will be found for that locale.

apply_inflections('post', inflections.plurals, :en)    # => "posts"
apply_inflections('posts', inflections.singulars, :en) # => "post"
Show source
Register or log in to add new notes.