Flowdock
method

apply_inflections

Importance_1
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: ActiveSupport::Inflector
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.