You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alois-commits@incubator.apache.org by fl...@apache.org on 2010/11/30 20:15:50 UTC
svn commit: r1040751 -
/incubator/alois/trunk/rails/script/load_default_working_items
Author: flavio
Date: Tue Nov 30 20:15:50 2010
New Revision: 1040751
URL: http://svn.apache.org/viewvc?rev=1040751&view=rev
Log:
Load default working items works without gems installed now
Modified:
incubator/alois/trunk/rails/script/load_default_working_items
Modified: incubator/alois/trunk/rails/script/load_default_working_items
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/script/load_default_working_items?rev=1040751&r1=1040750&r2=1040751&view=diff
==============================================================================
--- incubator/alois/trunk/rails/script/load_default_working_items (original)
+++ incubator/alois/trunk/rails/script/load_default_working_items Tue Nov 30 20:15:50 2010
@@ -3,11 +3,11 @@ require "pathname"
ENV["GEM_HOME"] = nil if ENV["GEM_HOME"] and !Pathname.new(ENV["GEM_HOME"]).exist?
ENV["GEM_PATH"] = nil if ENV["GEM_PATH"] and !Pathname.new(ENV["GEM_PATH"]).exist?
-require 'rubygems'
-require 'libisi'
+require Pathname.new(__FILE__).realpath + '../../config/environment'
+
+require "libisi"
init_libisi
optparse
-initialize_rails
print "Loading default working items.\n"