Skip to content

Commit 91c230a

Browse files
Brian Moreartyhone
authored andcommitted
Add current directory to LOAD_PATH in demo for Ruby 1.9.
1 parent ddfb5bb commit 91c230a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/demo/Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../../lib'
2+
$LOAD_PATH.unshift File.dirname(__FILE__) unless $LOAD_PATH.include?(File.dirname(__FILE__))
23
require 'resque/tasks'
34
require 'job'
45

examples/demo/config.ru

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env ruby
22
require 'logger'
33
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../../lib'
4+
$LOAD_PATH.unshift File.dirname(__FILE__) unless $LOAD_PATH.include?(File.dirname(__FILE__))
45
require 'app'
56
require 'resque/server'
67

0 commit comments

Comments
 (0)