method

instantiate_job

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: TestHelper
instantiate_job(payload, skip_deserialize_arguments: false) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activejob/lib/active_job/test_helper.rb, line 729
      def instantiate_job(payload, skip_deserialize_arguments: false)
        job = payload[:job].deserialize(payload)
        job.scheduled_at = Time.at(payload[:at]) if payload.key?(:at)
        job.send(:deserialize_arguments_if_needed) unless skip_deserialize_arguments
        job
      end
Register or log in to add new notes.