lib/rocket_job/plugins/job/model.rb in rocketjob-3.0.0.beta2 vs lib/rocket_job/plugins/job/model.rb in rocketjob-3.0.0.beta3
- old
+ new
@@ -146,14 +146,10 @@
end
# Scope for queued jobs that can run now
# I.e. Queued jobs excluding scheduled jobs
def queued_now
- queued.or(
- {:run_at.exists => false},
- {:run_at => nil},
- {:run_at.lte => Time.now}
- )
+ queued.or({:run_at => nil}, {:run_at.lte => Time.now})
end
# DEPRECATED
def rocket_job
warn 'Replace calls to .rocket_job with calls to set class instance variables. For example: self.priority = 50'