Mark gem as not loaded when spec not found

Signed-off-by: Michael Koziarski <michael@koziarski.com>
This commit is contained in:
Matt Jones
2008-10-07 23:10:45 -04:00
committed by Michael Koziarski
parent e28ad77bba
commit 2d644fd136

View File

@@ -108,6 +108,8 @@ module Rails
@loaded ||= begin
if vendor_rails?
true
elsif specification.nil?
false
else
# check if the gem is loaded by inspecting $"
# specification.files lists all the files contained in the gem