diff options
author | Vipul A M <vipulnsward@gmail.com> | 2019-03-07 18:01:28 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 18:01:28 +0530 |
commit | 60c953c9715a116b17757fa6f5ee38ee3844f01e (patch) | |
tree | 527b7f5800a566ad602853627e9d57b2f79f9601 /guides/source | |
parent | 6e56c4ac0846550c70e5f4aeeafe20de6a4ae8b6 (diff) | |
parent | 01aeee8a918a456524036175287a3afe0c3d009b (diff) | |
download | rails-60c953c9715a116b17757fa6f5ee38ee3844f01e.tar.gz rails-60c953c9715a116b17757fa6f5ee38ee3844f01e.tar.bz2 rails-60c953c9715a116b17757fa6f5ee38ee3844f01e.zip |
Merge pull request #35514 from soartec-lab/learn_more_about_inflections
Learn more about inflections[ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 903f39994f..b3078ed701 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -1341,7 +1341,7 @@ The method `pluralize` returns the plural of its receiver: "equipment".pluralize # => "equipment" ``` -As the previous example shows, Active Support knows some irregular plurals and uncountable nouns. Built-in rules can be extended in `config/initializers/inflections.rb`. That file is generated by the `rails` command and has instructions in comments. +As the previous example shows, Active Support knows some irregular plurals and uncountable nouns. Built-in rules can be extended in `config/initializers/inflections.rb`. This file is generated by default, by the `rails new` command and has instructions in comments. `pluralize` can also take an optional `count` parameter. If `count == 1` the singular form will be returned. For any other value of `count` the plural form will be returned: |