Permalink
Browse files

Fix no method error when theres no config

  • Loading branch information...
1 parent 9f2f5c1 commit a36cf1625f7c71727d2210c96557d9bc5030cb71 @quirkey quirkey committed with defunkt Jan 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/resque-web
View
@@ -12,7 +12,7 @@ require 'resque/server'
Vegas::Runner.new(Resque::Server, 'resque-web', {
:before_run => lambda {|v|
- path = (ENV['RESQUECONFIG'] || v.args.first).strip
- load path if path
+ path = (ENV['RESQUECONFIG'] || v.args.first)
+ load path.to_s.strip if path
}
})

0 comments on commit a36cf16

Please sign in to comment.