From d0212a50557e9ff0319dc76b8c381fe60612e6fd Mon Sep 17 00:00:00 2001 From: maximerety Date: Sun, 1 Sep 2024 10:31:14 +0200 Subject: [PATCH] Require zlib before use This commit fixes two missing cases. --- .../lib/active_record/connection_adapters/schema_cache.rb | 1 + activesupport/lib/active_support/cache/file_store.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/activerecord/lib/active_record/connection_adapters/schema_cache.rb b/activerecord/lib/active_record/connection_adapters/schema_cache.rb index 77ea0f46e7799..919e6f6088696 100644 --- a/activerecord/lib/active_record/connection_adapters/schema_cache.rb +++ b/activerecord/lib/active_record/connection_adapters/schema_cache.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "zlib" require "active_support/core_ext/file/atomic" module ActiveRecord diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index 5e815b85c1f0b..7ed2b9e0c78fa 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "zlib" require "active_support/core_ext/file/atomic" require "active_support/core_ext/string/conversions" require "uri/common"