diff options
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index ae89e8eead..abdb39ad10 100644 --- a/variable.c +++ b/variable.c @@ -272,7 +272,7 @@ rb_path_to_class(VALUE pathname) p += 2; pbeg = p; } - if (!rb_const_defined(c, id)) { + if (!rb_const_defined_at(c, id)) { undefined_class: rb_raise(rb_eArgError, "undefined class/module %.*s", (int)(p-path), path); } |