lib/active_job/scheduler/schedule.rb
# All events from the jobs DSL.
#
# @private
# @return [Array<ActiveJob::Scheduler::Job>]
All events from the jobs DSL.
All events from the jobs DSL .
def events_from_jobs
        Pathname.glob(Rails.root.join('app', 'jobs', '*.rb')).each do |job|
          require_dependency job.to_s
        end
        ActiveJob::Base
          .descendants
          .select { |job| job.to_event.present? }
          .map { |job| Event.new(job.to_event) }
      end
def events_from_jobs Pathname . glob ( Rails . root . join ( 'app' , 'jobs' , '*.rb' ) ) . each do | job | require_dependency job . to_s end ActiveJob :: Base . descendants . select { | job | job . to_event . present? } . map { | job | Event . new ( job . to_event ) } end
All events from the jobs DSL.
All events from the jobs DSL .
None
Array<ActiveJob::Scheduler::Job>
private
None