Skip to content

Commit

Permalink
Pass down enclosing module when resolving autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Oct 1, 2012
1 parent 13d4f49 commit 90fe220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/helpers.cpp
Expand Up @@ -237,7 +237,7 @@ namespace rubinius {
TypedRoot<Object*> sup(state, super);

if(Autoload* autoload = try_as<Autoload>(obj)) {
obj = autoload->resolve(state, gct, call_frame, true);
obj = autoload->resolve(state, gct, call_frame, under, true);

// Check if an exception occurred
if(!obj) return NULL;
Expand Down Expand Up @@ -276,7 +276,7 @@ namespace rubinius {

if(found) {
if(Autoload* autoload = try_as<Autoload>(obj)) {
obj = autoload->resolve(state, gct, call_frame, true);
obj = autoload->resolve(state, gct, call_frame, under, true);
}

// Check if an exception occurred
Expand Down

0 comments on commit 90fe220

Please sign in to comment.