OSDN Git Service

Don't instantiate Resque::Server in routes
authorRobert Speicher <rspeicher@gmail.com>
Sun, 16 Sep 2012 08:05:13 +0000 (04:05 -0400)
committerRobert Speicher <rspeicher@gmail.com>
Sun, 16 Sep 2012 11:38:14 +0000 (07:38 -0400)
It still works, and it cleans up the output of `rake routes`.

config/routes.rb

index 84a0c6a..858111f 100644 (file)
@@ -10,7 +10,7 @@ Gitlab::Application.routes.draw do
 
   # Optionally, enable Resque here
   require 'resque/server'
-  mount Resque::Server.new, at: '/info/resque', as: 'resque'
+  mount Resque::Server => '/info/resque', as: 'resque'
 
   # Enable Grack support
   mount Grack::Bundle.new({