diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 44b8616dfae722dcf724ff159410192096b23811..218ed1baf1ae5154e7403e20c1105e2ee1a91013 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -27,6 +27,8 @@ require "active_support/core_ext/string/inflections"
 require "active_support/core_ext/array/conversions"
 require "active_support/core_ext/hash/deep_merge"
 require "active_support/core_ext/file/atomic"
+require "active_support/core_ext/enumerable"
+require "active_support/core_ext/string/exclude"
 
 I18n.backend.available_locales # Initialize locales so they can be overwritten.
 I18n.backend.store_translations :en, support: { array: { last_word_connector: " and " } }