Permalink
Browse files

Need to add Rails components to $LOAD_PATH to require "arel" reliably

  • Loading branch information...
1 parent a923cf7 commit 19d7ee3661a395b69d8ea233096da33bde166b62 @brynary brynary committed Oct 28, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 Thorfile
View
@@ -1,6 +1,9 @@
module GemHelpers
def generate_gemspec
+ $LOAD_PATH << "#{File.dirname(__FILE__)}/vendor/rails/activerecord/lib"
+ $LOAD_PATH << "#{File.dirname(__FILE__)}/vendor/rails/activesupport/lib"
+
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), "lib")))
require "arel"

0 comments on commit 19d7ee3

Please sign in to comment.