Move inflections to dedicated file

This commit is contained in:
Sebastian Serth
2021-05-12 18:19:50 +02:00
parent a75328e634
commit 5bf7c0a425
2 changed files with 6 additions and 9 deletions

View File

@ -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
]

View File

@ -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