Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor fix for Ruby 1.9 compatibility

  • Loading branch information...
commit fbe76febab3ddc0e7079d5cab07cb3de4392d0b8 1 parent a4acfb6
@arthurgeek arthurgeek authored defunkt committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 config.ru
View
6 config.ru
@@ -1,13 +1,13 @@
#!/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
Please sign in to comment.
Something went wrong with that request. Please try again.