Skip to content

Instantly share code, notes, and snippets.

@moskvin
Created July 3, 2012 16:03
Show Gist options
  • Save moskvin/3040672 to your computer and use it in GitHub Desktop.
Save moskvin/3040672 to your computer and use it in GitHub Desktop.
Fix for resque connection issue
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