Permalink
Browse files

Pass down enclosing module when resolving autoload

Fixes #1934
  • Loading branch information...
1 parent 13d4f49 commit 90fe220d18b0b18007176de2ec54446d3c0618ba @dbussink dbussink committed Oct 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 vm/helpers.cpp
View
@@ -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;
@@ -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

0 comments on commit 90fe220

Please sign in to comment.