@@ -50,7 +50,7 @@ def serialize_argument(argument) # :nodoc:
5050 end
5151 end
5252 when Symbol
53- { OBJECT_SERIALIZER_KEY => "ActiveJob::Serializers::SymbolSerializer" , "value" => argument . name }
53+ { Serializers :: OBJECT_SERIALIZER_KEY => "ActiveJob::Serializers::SymbolSerializer" , "value" => argument . name }
5454 when GlobalID ::Identification
5555 convert_to_global_id_hash ( argument )
5656 when Array
@@ -94,15 +94,13 @@ def deserialize(arguments)
9494 RUBY2_KEYWORDS_KEY = "_aj_ruby2_keywords"
9595 # :nodoc:
9696 WITH_INDIFFERENT_ACCESS_KEY = "_aj_hash_with_indifferent_access"
97- # :nodoc:
98- OBJECT_SERIALIZER_KEY = "_aj_serialized"
9997
10098 # :nodoc:
10199 RESERVED_KEYS = [
102100 GLOBALID_KEY , GLOBALID_KEY . to_sym ,
103101 SYMBOL_KEYS_KEY , SYMBOL_KEYS_KEY . to_sym ,
104102 RUBY2_KEYWORDS_KEY , RUBY2_KEYWORDS_KEY . to_sym ,
105- OBJECT_SERIALIZER_KEY , OBJECT_SERIALIZER_KEY . to_sym ,
103+ Serializers :: OBJECT_SERIALIZER_KEY , Serializers :: OBJECT_SERIALIZER_KEY . to_sym ,
106104 WITH_INDIFFERENT_ACCESS_KEY , WITH_INDIFFERENT_ACCESS_KEY . to_sym ,
107105 ] . to_set
108106 private_constant :RESERVED_KEYS , :GLOBALID_KEY ,
@@ -136,7 +134,7 @@ def deserialize_global_id(hash)
136134 end
137135
138136 def custom_serialized? ( hash )
139- hash . key? ( OBJECT_SERIALIZER_KEY )
137+ hash . key? ( Serializers :: OBJECT_SERIALIZER_KEY )
140138 end
141139
142140 def serialize_hash ( argument )
@@ -197,4 +195,6 @@ def convert_to_global_id_hash(argument)
197195 "without an id. (Maybe you forgot to call save?)"
198196 end
199197 end
198+
199+ ActiveSupport . run_load_hooks ( :active_job_arguments , Arguments )
200200end
0 commit comments