Method: ActiveJob::Arguments#serialize

Defined in:
activejob/lib/active_job/arguments.rb

#serialize(arguments) ⇒ Object

Serializes a set of arguments. Intrinsic types that can safely be serialized without mutation are returned as-is. Arrays/Hashes are serialized element by element. All other types are serialized using GlobalID.



34
35
36
# File 'activejob/lib/active_job/arguments.rb', line 34

def serialize(arguments)
  arguments.map { |argument| serialize_argument(argument) }
end