Add this toolbar, and nccu calendar fix

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-06-04 16:51:29 +08:00
1 parent 2f500ff460
commit 8dd1ab32c1
13 files changed
+47 -10

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
module ResqueExt
#
# ResqueExt.unregister_workers_for_host("ec210-250-192-51")
#
def self.unregister_workers_for_host(host)
Resque.workers.select{|worker| worker.id.split(':').first==host}.each(&:unregister_worker)
end
end