Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created April 24, 2012 19:04
Show Gist options
  • Save jackdempsey/2482757 to your computer and use it in GitHub Desktop.
Save jackdempsey/2482757 to your computer and use it in GitHub Desktop.
constraint = lambda { |request| request.env["warden"].authenticate? and request.env['warden'].user.admin? }
constraints constraint do
mount Sidekiq::Web => '/sidekiq'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment