aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-09-19 18:00:06 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2015-09-19 18:00:06 +0200
commit1bf3cecf59821368cf3952188677b80a4407d883 (patch)
tree50663e739dce52d51297193c99714047201e8e69 /activesupport/lib/active_support/inflector
parentdcc941382b44eec0704c120cf1a73067c37ab79b (diff)
parent56ac6e4768adb1f7055474d40a9e921380559c43 (diff)
downloadrails-1bf3cecf59821368cf3952188677b80a4407d883.tar.gz
rails-1bf3cecf59821368cf3952188677b80a4407d883.tar.bz2
rails-1bf3cecf59821368cf3952188677b80a4407d883.zip
Merge pull request #21679 from jdantonio/replace-thread-safe
Replaced `ThreadSafe::Map` with successor `Concurrent::Map`.
Diffstat (limited to 'activesupport/lib/active_support/inflector')
-rw-r--r--activesupport/lib/active_support/inflector/inflections.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/inflector/inflections.rb b/activesupport/lib/active_support/inflector/inflections.rb
index 42560f3515..c3907e9c22 100644
--- a/activesupport/lib/active_support/inflector/inflections.rb
+++ b/activesupport/lib/active_support/inflector/inflections.rb
@@ -1,4 +1,4 @@
-require 'thread_safe'
+require 'concurrent'
require 'active_support/core_ext/array/prepend_and_append'
require 'active_support/i18n'
@@ -25,7 +25,7 @@ module ActiveSupport
# singularization rules that is runs. This guarantees that your rules run
# before any of the rules that may already have been loaded.
class Inflections
- @__instance__ = ThreadSafe::Cache.new
+ @__instance__ = Concurrent::Map.new
class Uncountables < Array
def initialize