remove unused requires in ActiveSupport::Cache
core_ext/array/wrap - added inb1164adda1
- usage removed infa986ae0ca
core_ext/numeric/time - added inee51b51b60
, but usage was only in mem_cache_store so moved require there
This commit is contained in:
parent
75a9e1be75
commit
079a065257
|
@ -2,11 +2,9 @@
|
|||
|
||||
require "zlib"
|
||||
require "active_support/core_ext/array/extract_options"
|
||||
require "active_support/core_ext/array/wrap"
|
||||
require "active_support/core_ext/enumerable"
|
||||
require "active_support/core_ext/module/attribute_accessors"
|
||||
require "active_support/core_ext/numeric/bytes"
|
||||
require "active_support/core_ext/numeric/time"
|
||||
require "active_support/core_ext/object/to_param"
|
||||
require "active_support/core_ext/object/try"
|
||||
require "active_support/core_ext/string/inflections"
|
||||
|
|
|
@ -10,6 +10,7 @@ end
|
|||
require "delegate"
|
||||
require "active_support/core_ext/enumerable"
|
||||
require "active_support/core_ext/array/extract_options"
|
||||
require "active_support/core_ext/numeric/time"
|
||||
|
||||
module ActiveSupport
|
||||
module Cache
|
||||
|
|
|
@ -15,6 +15,7 @@ begin
|
|||
rescue LoadError
|
||||
end
|
||||
|
||||
require "active_support/core_ext/numeric/time"
|
||||
require "active_support/digest"
|
||||
|
||||
module ActiveSupport
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "active_support/core_ext/numeric/time"
|
||||
|
||||
# Tests the base functionality that should be identical across all cache stores.
|
||||
module CacheStoreBehavior
|
||||
def test_should_read_and_write_strings
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
require_relative "../abstract_unit"
|
||||
require "active_support/cache"
|
||||
require "active_support/core_ext/numeric/time"
|
||||
|
||||
class CacheCoderTest < ActiveSupport::TestCase
|
||||
def test_new_coder_can_read_legacy_payloads
|
||||
|
|
Loading…
Reference in New Issue