mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
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:
committed by
Benjamin Fleischer
parent
6b093c965f
commit
64c7fee7a8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user