Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add current directory to LOAD_PATH in demo for Ruby 1.9.

  • Loading branch information...
commit 91c230a10018841d258ecb236a8e3fc7d0503d90 1 parent ddfb5bb
Brian Morearty authored hone committed
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'
Please sign in to comment.
Something went wrong with that request. Please try again.