diff options
author | soartec-lab <info@soartec-lab.work> | 2019-03-07 21:11:40 +0900 |
---|---|---|
committer | soartec-lab <info@soartec-lab.work> | 2019-03-07 21:29:41 +0900 |
commit | 01aeee8a918a456524036175287a3afe0c3d009b (patch) | |
tree | f6d4b90a8c15e98287266f1ef8a67ce362a12841 /guides | |
parent | e056b9bfb07c4eb3bcc6672d885aadd72bec574f (diff) | |
download | rails-01aeee8a918a456524036175287a3afe0c3d009b.tar.gz rails-01aeee8a918a456524036175287a3afe0c3d009b.tar.bz2 rails-01aeee8a918a456524036175287a3afe0c3d009b.zip |
Learn more about inflections[ci skip]
Diffstat (limited to 'guides')
-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: |