Skip to content
Browse files

require active_record in the backend

  • Loading branch information...
1 parent 766dd89 commit 07b427e4625bf026760b7d31d16c0c79380c626e @bkeepers bkeepers committed Jan 19, 2010
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'

0 comments on commit 07b427e

Please sign in to comment.
Something went wrong with that request. Please try again.