Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pass down enclosing module when resolving autoload

Fixes #1934
  • Loading branch information...
commit 90fe220d18b0b18007176de2ec54446d3c0618ba 1 parent 13d4f49
@dbussink dbussink authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 vm/helpers.cpp
View
4 vm/helpers.cpp
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.