require 'resque/tasks' task "resque:setup" => :environment do Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } end desc "Alias for resque:work (To run workers on Heroku)" task "jobs:work" => "resque:work"