incubator-alois-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fla...@apache.org
Subject svn commit: r1040751 - /incubator/alois/trunk/rails/script/load_default_working_items
Date Tue, 30 Nov 2010 20:15:50 GMT
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"
 



Mime
View raw message