diff options
Diffstat (limited to 'activejob/lib')
5 files changed, 11 insertions, 11 deletions
diff --git a/activejob/lib/active_job/serializers/array_serializer.rb b/activejob/lib/active_job/serializers/array_serializer.rb index f0254f4488..1b3c3b2ce3 100644 --- a/activejob/lib/active_job/serializers/array_serializer.rb +++ b/activejob/lib/active_job/serializers/array_serializer.rb @@ -8,17 +8,17 @@ module ActiveJob alias_method :deserialize?, :serialize? def serialize(array) - array.map { |arg| ::ActiveJob::Serializers.serialize(arg) } + array.map { |arg| Serializers.serialize(arg) } end def deserialize(array) - array.map { |arg| ::ActiveJob::Serializers.deserialize(arg) } + array.map { |arg| Serializers.deserialize(arg) } end private def klass - ::Array + Array end end end diff --git a/activejob/lib/active_job/serializers/global_id_serializer.rb b/activejob/lib/active_job/serializers/global_id_serializer.rb index 1961e43fca..ec20cf04f7 100644 --- a/activejob/lib/active_job/serializers/global_id_serializer.rb +++ b/activejob/lib/active_job/serializers/global_id_serializer.rb @@ -24,7 +24,7 @@ module ActiveJob private def klass - ::GlobalID::Identification + GlobalID::Identification end end end 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 diff --git a/activejob/lib/active_job/serializers/hash_with_indifferent_access_serializer.rb b/activejob/lib/active_job/serializers/hash_with_indifferent_access_serializer.rb index 50e80757cd..b0fb29d58b 100644 --- a/activejob/lib/active_job/serializers/hash_with_indifferent_access_serializer.rb +++ b/activejob/lib/active_job/serializers/hash_with_indifferent_access_serializer.rb @@ -8,7 +8,7 @@ module ActiveJob class << self def serialize(hash) result = serialize_hash(hash) - result[key] = ::ActiveJob::Serializers.serialize(true) + result[key] = Serializers.serialize(true) result end @@ -17,7 +17,7 @@ module ActiveJob end def deserialize(hash) - result = hash.transform_values { |v| ::ActiveJob::Serializers.deserialize(v) } + result = hash.transform_values { |v| Serializers.deserialize(v) } result.delete(key) result.with_indifferent_access end @@ -29,7 +29,7 @@ module ActiveJob private def klass - ::ActiveSupport::HashWithIndifferentAccess + ActiveSupport::HashWithIndifferentAccess end end end diff --git a/activejob/lib/active_job/serializers/standard_type_serializer.rb b/activejob/lib/active_job/serializers/standard_type_serializer.rb index 8969b31d6b..efc02adcf0 100644 --- a/activejob/lib/active_job/serializers/standard_type_serializer.rb +++ b/activejob/lib/active_job/serializers/standard_type_serializer.rb @@ -7,7 +7,7 @@ module ActiveJob class StandardTypeSerializer < BaseSerializer class << self def serialize?(argument) - ::ActiveJob::Arguments::TYPE_WHITELIST.include? argument.class + Arguments::TYPE_WHITELIST.include? argument.class end def serialize(argument) |