Code cleanup (#2369)

* Lint travis.yml on https://config.travis-ci.com/explore

* Replace deprecated 'thread_safe' with 'concurrent-ruby' alternative

'thread_safe' gem is now deprecated and merged into 'concurrent-ruby'.
Ref: 52e5f373a9 (diff-42d5a45da331eaa07d2b315bd3c9e738)

* Fix deprecation warning for Ruby 2.7

https://bugs.ruby-lang.org/issues/15539


* Remove a TODO tag that is already resolved
This commit is contained in:
Wasif Hossain
2020-01-03 08:53:59 +06:00
committed by Benjamin Fleischer
parent 6b093c965f
commit 64c7fee7a8
5 changed files with 18 additions and 17 deletions

View File

@@ -73,7 +73,7 @@ module ActiveModel
# Used to cache serializer name => serializer class
# when looked up by Serializer.get_serializer_for.
def self.serializers_cache
@serializers_cache ||= ThreadSafe::Cache.new
@serializers_cache ||= Concurrent::Map.new
end
# @api private