Browse files

Add current directory to LOAD_PATH in demo for Ruby 1.9.

  • Loading branch information...
1 parent ddfb5bb commit 91c230a10018841d258ecb236a8e3fc7d0503d90 Brian Morearty committed with hone Aug 29, 2011
Showing with 2 additions and 0 deletions.
  1. +1 −0 examples/demo/Rakefile
  2. +1 −0 examples/demo/config.ru
View
1 examples/demo/Rakefile
@@ -1,4 +1,5 @@
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../../lib'
+$LOAD_PATH.unshift File.dirname(__FILE__) unless $LOAD_PATH.include?(File.dirname(__FILE__))
require 'resque/tasks'
require 'job'
View
1 examples/demo/config.ru
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
require 'logger'
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../../lib'
+$LOAD_PATH.unshift File.dirname(__FILE__) unless $LOAD_PATH.include?(File.dirname(__FILE__))
require 'app'
require 'resque/server'

0 comments on commit 91c230a

Please sign in to comment.