X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/329465327cdfbb66220d5cee50d7b83f85cd3eba..d7c8ef4e435b88e9a45e5cd9fc2365fb82c9ab36:/apps/workbench/config/initializers/inflections.rb diff --git a/apps/workbench/config/initializers/inflections.rb b/apps/workbench/config/initializers/inflections.rb index 8f744968fc..55399f0f39 100644 --- a/apps/workbench/config/initializers/inflections.rb +++ b/apps/workbench/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 @@ -15,8 +19,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