Permalink
Browse files

Mark gem as not loaded when spec not found

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
1 parent e28ad77 commit 2d644fd13658fc4084f8df122bc6878c0d18df22 @al2o3cr al2o3cr committed with NZKoz Oct 8, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/lib/rails/gem_dependency.rb
@@ -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

0 comments on commit 2d644fd

Please sign in to comment.