Created
July 3, 2012 16:03
-
-
Save moskvin/3040672 to your computer and use it in GitHub Desktop.
Fix for resque connection issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'resque/tasks' | |
task "resque:setup" => :environment do | |
ENV['QUEUE'] = '*' | |
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment