Permalink
Browse files

Add current directory to LOAD_PATH in demo for Ruby 1.9.

  • Loading branch information...
1 parent 1678b84 commit cf6f8d70bffd3a755d2215a7159339db1b357a72 Brian Morearty committed with dbackeus 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,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,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 cf6f8d7

Please sign in to comment.