Skip to content

Commit fbe76fe

Browse files
arthurgeekdefunkt
authored andcommitted
Minor fix for Ruby 1.9 compatibility
1 parent a4acfb6 commit fbe76fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config.ru

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env ruby
22
require 'logger'
33

4-
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/lib')
4+
$LOAD_PATH.unshift ::File.expand_path(::File.dirname(__FILE__) + '/lib')
55
require 'resque/server'
66

77
# Set the RESQUECONFIG env variable if you've a `resque.rb` or similar
88
# config file you want loaded on boot.
9-
if ENV['RESQUECONFIG'] && File.exists?(File.expand_path(ENV['RESQUECONFIG']))
10-
load File.expand_path(ENV['RESQUECONFIG'])
9+
if ENV['RESQUECONFIG'] && ::File.exists?(::File.expand_path(ENV['RESQUECONFIG']))
10+
load ::File.expand_path(ENV['RESQUECONFIG'])
1111
end
1212

1313
use Rack::ShowExceptions

0 commit comments

Comments
 (0)