Skip to content

Commit

Permalink
Fix initialization for Rails 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Apr 16, 2010
1 parent 77e8df4 commit 9347c15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 1 addition & 5 deletions init.rb
@@ -1,5 +1 @@
require 'delayed_job'

config.after_initialize do
Delayed::Worker.guess_backend
end
require File.join(File.dirname(__FILE__), 'rails', 'init')
5 changes: 5 additions & 0 deletions rails/init.rb
@@ -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.