aboutsummaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'class.c')
-rw-r--r--class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/class.c b/class.c
index d2cdf74635..9b286a83e9 100644
--- a/class.c
+++ b/class.c
@@ -900,8 +900,8 @@ include_modules_at(const VALUE klass, VALUE c, VALUE module)
module = RCLASS_SUPER(module);
}
- if (method_changed) rb_clear_cache_by_class(klass);
- if (constant_changed) rb_clear_cache();
+ if (method_changed) rb_clear_method_cache_by_class(klass);
+ if (constant_changed) rb_clear_constant_cache();
return method_changed;
}