method

instantiate_job

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: TestHelper
instantiate_job(payload) 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 317
      def instantiate_job(payload) # :nodoc:
        job = payload[:job].new(*payload[:args])
        job.scheduled_at = Time.at(payload[:at]) if payload.key?(:at)
        job.queue_name = payload[:queue]
        job
      end
Register or log in to add new notes.