mirror of
https://github.com/github/rails.git
synced 2026-01-26 06:48:59 -05:00
Mark gem as not loaded when spec not found
Signed-off-by: Michael Koziarski <michael@koziarski.com>
This commit is contained in:
committed by
Michael Koziarski
parent
e28ad77bba
commit
2d644fd136
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user