annotate config/initializers/inflections.rb @ 476:5d3567759915

Update gems
author nanaya <me@nanaya.pro>
date Thu, 06 Aug 2020 23:08:41 +0900
parents 68eb23b52864
children 6cac8fcf8164
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 # Be sure to restart your server when you modify this file.
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2
431
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 0
diff changeset
3 # Add new inflection rules using the following format. Inflections
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 0
diff changeset
4 # are locale specific, and you may define rules for as many different
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 0
diff changeset
5 # locales as you wish. All of these examples are active by default:
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 0
diff changeset
6 # ActiveSupport::Inflector.inflections(:en) do |inflect|
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7 # inflect.plural /^(ox)$/i, '\1en'
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 # inflect.singular /^(ox)en/i, '\1'
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
9 # inflect.irregular 'person', 'people'
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 # inflect.uncountable %w( fish sheep )
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 # end
431
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 0
diff changeset
12
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
13 # These inflection rules are supported but not enabled by default:
431
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 0
diff changeset
14 # ActiveSupport::Inflector.inflections(:en) do |inflect|
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
15 # inflect.acronym 'RESTful'
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
16 # end