Permalink
Browse files

Move timeout require to appropriate file

  • Loading branch information...
1 parent 35a2808 commit 766dd898d34f988ddfff77e85d7189fb20d66fd5 @bkeepers bkeepers committed Jan 19, 2010
Showing with 2 additions and 1 deletion.
  1. +0 −1 lib/delayed/backend/active_record.rb
  2. +2 −0 lib/delayed/worker.rb
View
1 lib/delayed/backend/active_record.rb
@@ -1,4 +1,3 @@
-require 'timeout'
class ActiveRecord::Base
def self.load_for_delayed_job(id)
View
2 lib/delayed/worker.rb
@@ -1,3 +1,5 @@
+require 'timeout'
+
module Delayed
class Worker
cattr_accessor :min_priority, :max_priority, :max_attempts, :max_run_time, :sleep_delay, :logger

0 comments on commit 766dd89

Please sign in to comment.