Minor fix to allow ruby 1.8 to launch, does not load gems...

This commit is contained in:
Adam Sanderson 2011-01-05 14:18:48 -08:00
parent 12dd6073a7
commit 9a27899c92
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ end
# This might not be quite right...
#
# TODO figure out how to identify different ruby variants.
if RUBY_ENGINE == 'ruby'
if const_defined?(:RUBY_ENGINE) && RUBY_ENGINE == 'ruby'
register_if_present :mri, :rvm do
# If present, use the current rvm's ruby source.
paths = []