instance method
serialize
Ruby on Rails 6.0.6
Since v6.0.6Signature
serialize(arguments)
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.
Parameters
-
argumentsreq
Source
# File activejob/lib/active_job/arguments.rb, line 33
def serialize(arguments)
arguments.map { |argument| serialize_argument(argument) }
end
Defined in activejob/lib/active_job/arguments.rb line 33
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::Arguments