diff options
-rw-r--r-- | lib/rubygems/custom_require.rb | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -31,8 +31,23 @@ module Kernel # The normal <tt>require</tt> functionality of returning false if # that file has already been loaded is preserved. - def require(path) # :doc: - gem_original_require path rescue LoadError => load_error if load_error.message.end_with?(path) and Gem.try_activate(path) then return gem_original_require(path) |