config.ru in resque-1.2.3 vs config.ru in resque-1.3.0
- old
+ new
@@ -1,14 +1,14 @@
#!/usr/bin/env ruby
require 'logger'
-$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/lib')
+$LOAD_PATH.unshift ::File.expand_path(::File.dirname(__FILE__) + '/lib')
require 'resque/server'
# Set the RESQUECONFIG env variable if you've a `resque.rb` or similar
# config file you want loaded on boot.
-if ENV['RESQUECONFIG'] && File.exists?(File.expand_path(ENV['RESQUECONFIG']))
- load File.expand_path(ENV['RESQUECONFIG'])
+if ENV['RESQUECONFIG'] && ::File.exists?(::File.expand_path(ENV['RESQUECONFIG']))
+ load ::File.expand_path(ENV['RESQUECONFIG'])
end
use Rack::ShowExceptions
run Resque::Server.new