annotate config/initializers/inflections.rb @ 494:e508d3226214 default tip

Update gems
author nanaya <me@nanaya.net>
date Sun, 29 Oct 2023 23:24:13 +0900
parents 6cac8fcf8164
children
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|
485
6cac8fcf8164 Update to rails 7 (and ruby 3.1)
nanaya <me@nanaya.pro>
parents: 431
diff changeset
7 # inflect.plural /^(ox)$/i, "\\1en"
6cac8fcf8164 Update to rails 7 (and ruby 3.1)
nanaya <me@nanaya.pro>
parents: 431
diff changeset
8 # inflect.singular /^(ox)en/i, "\\1"
6cac8fcf8164 Update to rails 7 (and ruby 3.1)
nanaya <me@nanaya.pro>
parents: 431
diff changeset
9 # inflect.irregular "person", "people"
0
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|
485
6cac8fcf8164 Update to rails 7 (and ruby 3.1)
nanaya <me@nanaya.pro>
parents: 431
diff changeset
15 # inflect.acronym "RESTful"
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
16 # end