summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-27 13:40:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-27 13:40:37 +0000
commit3e96f56f8ae9cb428e00aa0d60ddd18304a1f09e (patch)
tree84fa06ec741e229627b85f82420c87e8e08a05df /vm_method.c
parentd4269d7b7c5c89b98c3f920dcadde1a635f5d72d (diff)
remove from original m_tbl
* vm_method.c (remove_method): remove the method from the original m_tbl on a prepended module. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c
index 5a7722cd67..7546a1c31c 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -452,6 +452,7 @@ remove_method(VALUE klass, ID mid)
st_data_t key, data;
rb_method_entry_t *me = 0;
+ klass = RCLASS_ORIGIN(klass);
if (klass == rb_cObject) {
rb_secure(4);
}