Skip to content

Commit

Permalink
Minor fix for Ruby 1.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeek authored and defunkt committed Dec 16, 2009
1 parent a4acfb6 commit fbe76fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.ru
@@ -1,13 +1,13 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require 'logger' 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' require 'resque/server'


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


use Rack::ShowExceptions use Rack::ShowExceptions
Expand Down

0 comments on commit fbe76fe

Please sign in to comment.