Skip to content

Commit

Permalink
suppress more test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oldmoe committed Apr 20, 2024
1 parent 8d6e13f commit bef5781
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/active_support/cache/litecache.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions test/patch_ar_adapter_path.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit bef5781

Please sign in to comment.