X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4ca9ad94a6bb006d1f3c7ba207837f1736d1247..5ee93e408c0e547dfb03b2f3d039a7715126395b:/services/api/config/initializers/inflections.rb diff --git a/services/api/config/initializers/inflections.rb b/services/api/config/initializers/inflections.rb index 79bca3af38..50bd0d5f55 100644 --- a/services/api/config/initializers/inflections.rb +++ b/services/api/config/initializers/inflections.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format @@ -10,8 +14,8 @@ # end ActiveSupport::Inflector.inflections do |inflect| - inflect.plural /^([Ss]pecimen)$/i, '\1s' - inflect.singular /^([Ss]pecimen)s?/i, '\1' - inflect.plural /^([Hh]uman)$/i, '\1s' - inflect.singular /^([Hh]uman)s?/i, '\1' + inflect.plural(/^([Ss]pecimen)$/i, '\1s') + inflect.singular(/^([Ss]pecimen)s?/i, '\1') + inflect.plural(/^([Hh]uman)$/i, '\1s') + inflect.singular(/^([Hh]uman)s?/i, '\1') end