From 00dc68a5a4eca4b27bb9456f0b7019bcb7551007 Mon Sep 17 00:00:00 2001 From: evanweaver Date: Sat, 27 Oct 2007 17:38:13 +0000 Subject: use rubygems a little less aggressively git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@808 19e92222-5c0b-0410-8929-a290d50e31e9 --- lib/mongrel/init.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/mongrel/init.rb') diff --git a/lib/mongrel/init.rb b/lib/mongrel/init.rb index 7199d0c..968f2cd 100644 --- a/lib/mongrel/init.rb +++ b/lib/mongrel/init.rb @@ -4,10 +4,13 @@ # Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html # for more information. -require 'rubygems' -require 'gem_plugin' +begin + require 'gem_plugin' +rescue LoadError + require 'rubygems' and retry +end -# file is just a stub that makes sure the mongrel_plugins gem is loaded and ready +# File is just a stub that makes sure the mongrel_plugins gem is loaded and ready -- cgit v1.2.3-24-ge0c7