Guest User

Untitled

a guest
Nov 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. require 'resque/tasks'
  2.  
  3. task "resque:setup" => :environment do
  4. ENV['QUEUE'] = '*'
  5. Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
  6. end
Add Comment
Please, Sign In to add comment