instance method scheduled_at=

Ruby on Rails 7.1.6

Since v7.1.6 Last seen in v7.1.6

Signature

scheduled_at=(value)

No documentation comment.

Parameters

value req
Source
# File activejob/lib/active_job/core.rb, line 177
    def scheduled_at=(value)
      @_scheduled_at_time = if value&.is_a?(Numeric)
        ActiveJob.deprecator.warn(<<~MSG.squish)
          Assigning a numeric/epoch value to scheduled_at is deprecated. Use a Time object instead.
        MSG
        Time.at(value)
      else
        value
      end
      @scheduled_at = value
    end

Defined in activejob/lib/active_job/core.rb line 177 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveJob::Core

Type at least 2 characters to search.

↑↓ navigate · open · esc close