global: tweak active_support requires.

I was hoping that these would speed up boot but unfortunately they make
no difference. They are a bit more minimal anyway so probably a good
idea.
This commit is contained in:
Mike McQuaid 2020-08-11 12:33:51 +01:00
parent 9ef993ab57
commit 3d66080a68
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -10,11 +10,14 @@ require "pp"
require_relative "load_path"
require "rubygems"
# Only require "core_ext" here to ensure we're only requiring the minimum of
# what we need.
require "active_support/core_ext/object/blank"
require "active_support/core_ext/numeric/time"
require "active_support/core_ext/object/try"
require "active_support/core_ext/array/access"
require "active_support/i18n"
require "active_support/inflector/inflections"
require "active_support/core_ext/string/inflections"
require "active_support/core_ext/array/conversions"
I18n.backend.available_locales # Initialize locales so they can be overwritten.
I18n.backend.store_translations :en, support: { array: { last_word_connector: " and " } }