Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mark gem as not loaded when spec not found

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
commit 2d644fd13658fc4084f8df122bc6878c0d18df22 1 parent e28ad77
Matt Jones al2o3cr authored NZKoz committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  railties/lib/rails/gem_dependency.rb
2  railties/lib/rails/gem_dependency.rb
View
@@ -108,6 +108,8 @@ def loaded?
@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
Please sign in to comment.
Something went wrong with that request. Please try again.