diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-02-09 14:31:00 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-02-14 13:10:07 -0500 |
commit | 803f4385c6c30217e3d2cf81cbaba92c7bc58476 (patch) | |
tree | 9433e261e6b9e6f2562a58b57dd4e929fbd7a1ec /activejob/lib/active_job/serializers/hash_serializer.rb | |
parent | ec686a471e0a54194fc9ec72e639785606597704 (diff) | |
download | rails-803f4385c6c30217e3d2cf81cbaba92c7bc58476.tar.gz rails-803f4385c6c30217e3d2cf81cbaba92c7bc58476.tar.bz2 rails-803f4385c6c30217e3d2cf81cbaba92c7bc58476.zip |
Remove unnecessary qualified constant lookups
Diffstat (limited to 'activejob/lib/active_job/serializers/hash_serializer.rb')
-rw-r--r-- | activejob/lib/active_job/serializers/hash_serializer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activejob/lib/active_job/serializers/hash_serializer.rb b/activejob/lib/active_job/serializers/hash_serializer.rb index c4dcfaf094..ca39a81ae9 100644 --- a/activejob/lib/active_job/serializers/hash_serializer.rb +++ b/activejob/lib/active_job/serializers/hash_serializer.rb @@ -18,7 +18,7 @@ module ActiveJob end def deserialize(hash) - result = hash.transform_values { |v| ::ActiveJob::Serializers::deserialize(v) } + result = hash.transform_values { |v| Serializers::deserialize(v) } symbol_keys = result.delete(key) transform_symbol_keys(result, symbol_keys) end @@ -31,7 +31,7 @@ module ActiveJob def serialize_hash(hash) hash.each_with_object({}) do |(key, value), result| - result[serialize_hash_key(key)] = ::ActiveJob::Serializers.serialize(value) + result[serialize_hash_key(key)] = Serializers.serialize(value) end end @@ -54,7 +54,7 @@ module ActiveJob end def klass - ::Hash + Hash end end end |