method
apply_inflections
v4.2.7 -
Show latest stable
- Class:
ActiveSupport::Inflector
apply_inflections(word, rules)private
Applies inflection rules for singularize and pluralize.
apply_inflections('post', inflections.plurals) # => "posts" apply_inflections('posts', inflections.singulars) # => "post"