diff options
author | Matt Jones <al2o3cr@gmail.com> | 2008-10-07 23:10:45 -0400 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-10-08 17:36:52 +0200 |
commit | 2d644fd13658fc4084f8df122bc6878c0d18df22 (patch) | |
tree | 44fc496b17d41b136947d9fec297011027c62d70 /railties | |
parent | e28ad77bba0574241e6eb64dfd0c1291b221effe (diff) | |
download | rails-2d644fd13658fc4084f8df122bc6878c0d18df22.tar.gz rails-2d644fd13658fc4084f8df122bc6878c0d18df22.tar.bz2 rails-2d644fd13658fc4084f8df122bc6878c0d18df22.zip |
Mark gem as not loaded when spec not found
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/gem_dependency.rb | 2 |
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 |