Permalink
Browse files

seed db first time

  • Loading branch information...
akshayrawat committed Jul 31, 2012
1 parent 58a6574 commit 483f0185d19851bfeaeed05fd295c9a9e79fd6e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/welcome_controller.rb
@@ -19,7 +19,7 @@ def seed_data
end
def stale?
- Delayed::Job.where('updated_at < ?', 1.hour.ago).present?
+ Delayed::Job.where('updated_at < ?', 1.hour.ago).present? || Delayed::Job.count.zero?
end
end

0 comments on commit 483f018

Please sign in to comment.