An interesting alternative to this is to use an initializer as described in http://asciicasts.com/episodes/271-resque
"We’re not using Devise or any other authentication system in our application so instead we’ll use HTTP Basic Authentication. To do this we’ll create a new initializer in the config/initializers directory called resque_auth.rb."
I have changed a bit the example from ASCIIcasts
Resque::Server.use(Rack::Auth::Basic) do |user, password| [user, password] == ["myuser", "secret"] end