Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / services / api / config / initializers / inflections.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 # Be sure to restart your server when you modify this file.
6
7 # Add new inflection rules using the following format
8 # (all these examples are active by default):
9 # ActiveSupport::Inflector.inflections do |inflect|
10 #   inflect.plural /^(ox)$/i, '\1en'
11 #   inflect.singular /^(ox)en/i, '\1'
12 #   inflect.irregular 'person', 'people'
13 #   inflect.uncountable %w( fish sheep )
14 # end
15
16 ActiveSupport::Inflector.inflections do |inflect|
17   inflect.plural(/^([Ss]pecimen)$/i, '\1s')
18   inflect.singular(/^([Ss]pecimen)s?/i, '\1')
19   inflect.plural(/^([Hh]uman)$/i, '\1s')
20   inflect.singular(/^([Hh]uman)s?/i, '\1')
21 end