summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-05-10 14:15:34 +0900
committerGitHub <noreply@github.com>2023-05-10 14:15:34 +0900
commita877630ac2c3c9e498b7124e9629656fabe9bc84 (patch)
tree8e2f85df3dc065c292a430a847f134f54e0aa4c6 /ext
parent248bc5bf7ea597d7a20396a8def855a1988bf490 (diff)
parentcd8bbe56a3d0a3eca1419ae850088ce204f12ee5 (diff)
downloadjson-master.tar.gz
Merge pull request #486 from Shopify/uk-call-super-in-includedHEADmaster
Call `super` in `included` hook
Diffstat (limited to 'ext')
-rw-r--r--ext/json/ext/generator/generator.c1
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;
}