Mark gem as not loaded when spec not found
Signed-off-by: Michael Koziarski <michael@koziarski.com>
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in New Issue