We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent decd363 commit 1443393Copy full SHA for 1443393
README.markdown
@@ -501,6 +501,18 @@ You can also mount Resque on a subpath in your existing Rails 3 app by adding `r
501
mount Resque::Server.new, :at => "/resque"
502
```
503
504
+If you use Devise, the following will integrate with your existing admin authentication (assuming you have an Admin Devise scope):
505
+
506
+``` ruby
507
+resque_constraint = lambda do |request|
508
+ request.env['warden'].authenticate!({ :scope => :admin })
509
+end
510
+constraints resque_constraint do
511
+ mount Resque::Server.new, :at => "/resque"
512
513
+```
514
515
516
517
Resque vs DelayedJob
518
--------------------
0 commit comments