comparison config/initializers/inflections.rb @ 485:6cac8fcf8164

Update to rails 7 (and ruby 3.1)
author nanaya <me@nanaya.pro>
date Sat, 15 Jan 2022 02:07:02 +0900
parents 68eb23b52864
children
comparison
equal deleted inserted replaced
484:84ca55a0568e 485:6cac8fcf8164
2 2
3 # Add new inflection rules using the following format. Inflections 3 # Add new inflection rules using the following format. Inflections
4 # are locale specific, and you may define rules for as many different 4 # are locale specific, and you may define rules for as many different
5 # locales as you wish. All of these examples are active by default: 5 # locales as you wish. All of these examples are active by default:
6 # ActiveSupport::Inflector.inflections(:en) do |inflect| 6 # ActiveSupport::Inflector.inflections(:en) do |inflect|
7 # inflect.plural /^(ox)$/i, '\1en' 7 # inflect.plural /^(ox)$/i, "\\1en"
8 # inflect.singular /^(ox)en/i, '\1' 8 # inflect.singular /^(ox)en/i, "\\1"
9 # inflect.irregular 'person', 'people' 9 # inflect.irregular "person", "people"
10 # inflect.uncountable %w( fish sheep ) 10 # inflect.uncountable %w( fish sheep )
11 # end 11 # end
12 12
13 # These inflection rules are supported but not enabled by default: 13 # These inflection rules are supported but not enabled by default:
14 # ActiveSupport::Inflector.inflections(:en) do |inflect| 14 # ActiveSupport::Inflector.inflections(:en) do |inflect|
15 # inflect.acronym 'RESTful' 15 # inflect.acronym "RESTful"
16 # end 16 # end