Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move timeout require to appropriate file

  • Loading branch information...
commit 766dd898d34f988ddfff77e85d7189fb20d66fd5 1 parent 35a2808
@bkeepers bkeepers authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.