summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 7d5156e..b6916d1 100644
--- a/eval.c
+++ b/eval.c
@@ -1263,7 +1263,7 @@ mod_using(VALUE self, VALUE module)
}
Check_Type(module, T_MODULE);
rb_using_module(cref, module);
- rb_clear_cache_by_class(rb_cObject);
+ rb_clear_method_cache_by_class(rb_cObject);
return self;
}
@@ -1399,7 +1399,7 @@ top_using(VALUE self, VALUE module)
}
Check_Type(module, T_MODULE);
rb_using_module(cref, module);
- rb_clear_cache_by_class(rb_cObject);
+ rb_clear_method_cache_by_class(rb_cObject);
return self;
}