mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
AS guide: shortens a sentence
This commit is contained in:
@@ -1261,7 +1261,7 @@ The method +pluralize+ returns the plural of its receiver:
|
||||
"equipment".pluralize # => "equipment"
|
||||
</ruby>
|
||||
|
||||
As the previous example shows, Active Support knows some irregular plurals and a few uncountable nouns. Builtin 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. Builtin rules can be extended in +config/initializers/inflections.rb+. That file is generated by the +rails+ command and has instructions in comments.
|
||||
|
||||
NOTE: Defined in +active_support/core_ext/string/inflections.rb+.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user