Module: ActiveJob::PerformLater

Defined in:
lib/active_job/perform_later.rb,
lib/active_job/perform_later/job.rb,
lib/active_job/perform_later/macro.rb,
lib/active_job/perform_later/mixin.rb,
lib/active_job/perform_later/proxy.rb,
lib/active_job/perform_later/version.rb

Overview

Runs any method of any class or instance in the background, either through ad-hoc Mixin#perform_later proxies or through dedicated jobs declared with the Macro#perform_later_job macro.

Examples:

Enqueue a method call on a model

user.perform_later(wait: 5.minutes).send_welcome_email

Defined Under Namespace

Modules: Macro, Mixin

Constant Summary collapse

VERSION =

Semantic version of the gem, bumped by the release workflow.

Returns:

  • (String) —

    the current version

'2026.10.29.162056'

Class Attribute Summary collapse

Class Attribute Details

.base_job ⇒ Class, String

The job class (or class name) generated jobs inherit from.

Returns:

  • (Class, String) —

    defaults to "ActiveJob::Base"