21700: Install Bundler system-wide in Rails postinst
[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. Inflections
8 # are locale specific, and you may define rules for as many different
9 # locales as you wish. All of these examples are active by default:
10 # ActiveSupport::Inflector.inflections(:en) do |inflect|
11 #   inflect.plural /^(ox)$/i, "\\1en"
12 #   inflect.singular /^(ox)en/i, "\\1"
13 #   inflect.irregular "person", "people"
14 #   inflect.uncountable %w( fish sheep )
15 # end
16
17 # These inflection rules are supported but not enabled by default:
18 # ActiveSupport::Inflector.inflections(:en) do |inflect|
19 #   inflect.acronym "RESTful"
20 # end
21
22 ActiveSupport::Inflector.inflections do |inflect|
23   inflect.plural(/^([Ss]pecimen)$/i, '\1s')
24   inflect.singular(/^([Ss]pecimen)s?/i, '\1')
25   inflect.plural(/^([Hh]uman)$/i, '\1s')
26   inflect.singular(/^([Hh]uman)s?/i, '\1')
27 end