diff --git a/lib/active_support/cache/litecache.rb b/lib/active_support/cache/litecache.rb index d88dcdd..8679878 100644 --- a/lib/active_support/cache/litecache.rb +++ b/lib/active_support/cache/litecache.rb @@ -1,13 +1,14 @@ -require "delegate" require "active_support" -require "active_support/core_ext/enumerable" -require "active_support/core_ext/array/extract_options" require "active_support/core_ext/numeric/time" require "active_support/cache" + require_relative "../../litestack/litecache" module ActiveSupport module Cache + + self.format_version = 7.0 + class Litecache < Store # prepend Strategy::LocalCache diff --git a/test/patch_ar_adapter_path.rb b/test/patch_ar_adapter_path.rb index 44ffc96..2a744e1 100644 --- a/test/patch_ar_adapter_path.rb +++ b/test/patch_ar_adapter_path.rb @@ -1,6 +1,9 @@ # don't attempt to load the adapter to avoid requiring the gem to be installed # we can just require the adapter manually class ActiveRecord::ConnectionAdapters::ConnectionHandler + + alias_method :discarded_resolve_pool_config, :resolve_pool_config + def resolve_pool_config(config, connection_name, role, shard) db_config = ActiveRecord::Base.configurations.resolve(config) ActiveRecord::ConnectionAdapters::PoolConfig.new(connection_name, db_config, role, shard)