method
apply_inflections
v5.2.3 -
Show latest stable
- 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"