lib/loader/utils.rb in loader-3.0.1 vs lib/loader/utils.rb in loader-3.1.0
- old
+ new
@@ -2,9 +2,10 @@
module Loader::Utils
extend self
def require(file_path)
+ return false unless File.exist?(file_path)
Kernel.require(file_path)
rescue LoadError
Kernel.load(file_path)
end
\ No newline at end of file