Merge pull request #8300 from MikeMcQuaid/active_support_core_ext

global: tweak active_support requires.
This commit is contained in:
Mike McQuaid 2020-08-11 13:13:02 +01:00 committed by GitHub
commit cb3b9429ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 " } }