diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-05-10 14:15:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 14:15:34 +0900 |
commit | a877630ac2c3c9e498b7124e9629656fabe9bc84 (patch) | |
tree | 8e2f85df3dc065c292a430a847f134f54e0aa4c6 /ext | |
parent | 248bc5bf7ea597d7a20396a8def855a1988bf490 (diff) | |
parent | cd8bbe56a3d0a3eca1419ae850088ce204f12ee5 (diff) | |
download | json-master.tar.gz |
Call `super` in `included` hook
Diffstat (limited to 'ext')
-rw-r--r-- | ext/json/ext/generator/generator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c index 98d0ea4..8f7c57e 100644 --- a/ext/json/ext/generator/generator.c +++ b/ext/json/ext/generator/generator.c @@ -478,6 +478,7 @@ static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self) */ static VALUE mString_included_s(VALUE self, VALUE modul) { VALUE result = rb_funcall(modul, i_extend, 1, mString_Extend); + rb_call_super(1, &modul); return result; } |