Permalink
Browse files

Fix initialization for Rails 2.x

  • Loading branch information...
1 parent 77e8df4 commit 9347c152d428c02e4942e3155965f8be36673c0f @bkeepers bkeepers committed Apr 16, 2010
Showing with 6 additions and 5 deletions.
  1. +1 −5 init.rb
  2. +5 −0 rails/init.rb
View
@@ -1,5 +1 @@
-require 'delayed_job'
-
-config.after_initialize do
- Delayed::Worker.guess_backend
-end
+require File.join(File.dirname(__FILE__), 'rails', 'init')
View
@@ -0,0 +1,5 @@
+require 'delayed_job'
+
+config.after_initialize do
+ Delayed::Worker.guess_backend
+end

0 comments on commit 9347c15

Please sign in to comment.