From 2d644fd13658fc4084f8df122bc6878c0d18df22 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Tue, 7 Oct 2008 23:10:45 -0400 Subject: Mark gem as not loaded when spec not found Signed-off-by: Michael Koziarski --- railties/lib/rails/gem_dependency.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/railties/lib/rails/gem_dependency.rb b/railties/lib/rails/gem_dependency.rb index 3b2f4846a6..ffdc403700 100644 --- a/railties/lib/rails/gem_dependency.rb +++ b/railties/lib/rails/gem_dependency.rb @@ -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 -- cgit v1.2.3