class Rufus::Scheduler
def scheduled?(job_or_job_id)
currently firing.
Takes extra care to answer true if the job is a repeat job
Returns true if this job is currently scheduled.
def scheduled?(job_or_job_id) job, job_id = fetch(job_or_job_id) !! (job && job.unscheduled_at.nil? && job.next_time != nil) end