Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
EngineYard resque-web
require 'resque/server'
resque_constraint = lambda do |request|
request.env['warden'].authenticate? and request.env['warden'].user.admin? # or whatever manner your admin role can be determined
constraints resque_constraint do
mount, :at => "/resque"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment