instance method
serialize
Ruby on Rails 4.2.9
Since v4.2.9Signature
serialize()
Returns a hash with the job data that can safely be passed to the queueing adapter.
Source
# File activejob/lib/active_job/core.rb, line 67
def serialize
{
'job_class' => self.class.name,
'job_id' => job_id,
'queue_name' => queue_name,
'arguments' => serialize_arguments(arguments),
'locale' => I18n.locale
}
end
Defined in activejob/lib/active_job/core.rb line 67
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::Core