Skip to content

Commit 63f0c64

Browse files
authored
Merge pull request rails#46534 from mensfeld/patch-1
Remote not needed thread-safe primitive
2 parents 38d7915 + e578262 commit 63f0c64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

activesupport/lib/active_support/testing/time_helpers.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
require "active_support/core_ext/module/redefine_method"
44
require "active_support/core_ext/time/calculations"
5-
require "concurrent/map"
65

76
module ActiveSupport
87
module Testing
@@ -11,7 +10,7 @@ class SimpleStubs # :nodoc:
1110
Stub = Struct.new(:object, :method_name, :original_method)
1211

1312
def initialize
14-
@stubs = Concurrent::Map.new { |h, k| h[k] = {} }
13+
@stubs = Hash.new { |h, k| h[k] = {} }
1514
end
1615

1716
# Stubs object.method_name with the given block

0 commit comments

Comments
 (0)