lib/resque/server.rb in resque-1.8.5 vs lib/resque/server.rb in resque-1.8.6
- old
+ new
@@ -104,11 +104,11 @@
def show(page, layout = true)
begin
erb page.to_sym, {:layout => layout}, :resque => Resque
rescue Errno::ECONNREFUSED
- erb :error, {:layout => false}, :error => "Can't connect to Redis! (#{Resque.redis.server})"
+ erb :error, {:layout => false}, :error => "Can't connect to Redis! (#{Resque.redis_id})"
end
end
# to make things easier on ourselves
get "/?" do
@@ -122,11 +122,11 @@
get "/#{page}/:id" do
show page
end
end
-
+
post "/queues/:id/remove" do
Resque.remove_queue(params[:id])
redirect u('queues')
end
@@ -148,10 +148,10 @@
post "/failed/clear" do
Resque::Failure.clear
redirect u('failed')
end
-
+
get "/failed/requeue/:index" do
Resque::Failure.requeue(params[:index])
if request.xhr?
return Resque::Failure.all(params[:index])['retried_at']
else