From 5bf7c0a42509a720f26e8faf40d97ebc60a46f27 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 12 May 2021 18:19:50 +0200 Subject: [PATCH] Move inflections to dedicated file --- config/application.rb | 5 ----- config/initializers/inflections.rb | 10 ++++++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/config/application.rb b/config/application.rb index 1073cd75..17d35456 100644 --- a/config/application.rb +++ b/config/application.rb @@ -27,11 +27,6 @@ module CodeOcean # config.i18n.default_locale = :de config.i18n.available_locales = [:de, :en] - # Add inflection for Zeitwerk - ActiveSupport::Inflector.inflections(:en) do |inflect| - inflect.acronym 'IO' - end - extra_paths = %W[ #{config.root}/lib ] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index ac033bf9..638bf0c7 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections @@ -10,7 +12,7 @@ # inflect.uncountable %w( fish sheep ) # end -# These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym 'RESTful' -# end +ActiveSupport::Inflector.inflections(:en) do |inflect| + inflect.acronym 'IO' +end +