Skip to content

Commit 7355146

Browse files
authored
Change first arg to oj_parse_options (#987)
1 parent f30193f commit 7355146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/oj/rails.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ static VALUE encoder_new(int argc, VALUE *argv, VALUE self) {
668668
} else {
669669
e->arg = rb_hash_new();
670670
}
671-
oj_parse_options(*argv, &e->opts);
671+
oj_parse_options(e->arg, &e->opts);
672672

673673
return TypedData_Wrap_Struct(encoder_class, &oj_encoder_type, e);
674674
}

0 commit comments

Comments
 (0)