Project

General

Profile

Feature #11140

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

Right now, rubygems can't handle calls to `autoload` because `autoload` will directly call `rb_require_safe` rather than sending to `Kernel::require`. 

 For example: 

 ~~~ruby ~~~ 
 class A 
   autoload :B, 'a/b' # this is in a different Gem 
 end 
 A::B 
 ~~~ 

 The above code won't work because 'a/b' is in a different gem.    I'd like to give rubygems the opportunity to handle requires made through `autoload`. 

 I've attached a patch that makes the change. 

Back