Move inflections to dedicated file
This commit is contained in:
@ -27,11 +27,6 @@ module CodeOcean
|
|||||||
# config.i18n.default_locale = :de
|
# config.i18n.default_locale = :de
|
||||||
config.i18n.available_locales = [:de, :en]
|
config.i18n.available_locales = [:de, :en]
|
||||||
|
|
||||||
# Add inflection for Zeitwerk
|
|
||||||
ActiveSupport::Inflector.inflections(:en) do |inflect|
|
|
||||||
inflect.acronym 'IO'
|
|
||||||
end
|
|
||||||
|
|
||||||
extra_paths = %W[
|
extra_paths = %W[
|
||||||
#{config.root}/lib
|
#{config.root}/lib
|
||||||
]
|
]
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Add new inflection rules using the following format. Inflections
|
# Add new inflection rules using the following format. Inflections
|
||||||
@ -10,7 +12,7 @@
|
|||||||
# inflect.uncountable %w( fish sheep )
|
# inflect.uncountable %w( fish sheep )
|
||||||
# end
|
# end
|
||||||
|
|
||||||
# These inflection rules are supported but not enabled by default:
|
ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
inflect.acronym 'IO'
|
||||||
# inflect.acronym 'RESTful'
|
end
|
||||||
# end
|
|
||||||
|
Reference in New Issue
Block a user