aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/lib/rails/gem_dependency.rb2
1 files changed, 2 insertions, 0 deletions
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