Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

require active_record in the backend

  • Loading branch information...
commit 07b427e4625bf026760b7d31d16c0c79380c626e 1 parent 766dd89
@bkeepers bkeepers authored
Showing with 1 addition and 2 deletions.
  1. +1 −0  lib/delayed/backend/active_record.rb
  2. +0 −2  lib/delayed_job.rb
View
1  lib/delayed/backend/active_record.rb
@@ -1,3 +1,4 @@
+require 'active_record'
class ActiveRecord::Base
def self.load_for_delayed_job(id)
View
2  lib/delayed_job.rb
@@ -1,5 +1,3 @@
-autoload :ActiveRecord, 'activerecord'
-
require File.dirname(__FILE__) + '/delayed/message_sending'
require File.dirname(__FILE__) + '/delayed/performable_method'
require File.dirname(__FILE__) + '/delayed/backend/base'
Please sign in to comment.
Something went wrong with that request. Please try again.