Skip to content

Commit

Permalink
Namespaced the resque admin_secret config
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Apr 3, 2012
1 parent 914b728 commit 5d07050
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scrolls/resque.rb
Expand Up @@ -20,10 +20,10 @@
require 'resque/tasks'
RAKE

unless config['admin_secret'].blank?
unless config['resque_admin_secret'].blank?
route <<-ROUTE
require "resque/server"
mount Resque::Server.new, :at => "/resque/#{config['admin_secret']}"
mount Resque::Server.new, :at => "/resque/#{config['resque_admin_secret']}"
ROUTE

end
Expand Down Expand Up @@ -63,7 +63,7 @@
type: boolean
prompt: "Install the great admin interface to Resque?"

- admin_secret:
- resque_admin_secret:
type: string
prompt: "Enter a secret string for the route /resque/YOUR-SECRET-STRING:"
if: admin

0 comments on commit 5d07050

Please sign in to comment.