summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-01-20 11:39:25 +0100
committerJean Boussier <jean.boussier@gmail.com>2025-01-20 14:20:55 +0100
commit2b4b7bdb10dc8671bbc9e757f05bb74355891062 (patch)
tree9dd4a2db0d017948f1d361a48811e7a57938869d
parente8676cada82ed9947502b416eaa948258a62d7b9 (diff)
[ruby/json] Fix JSON::Fragment#to_json signature
https://github.com/ruby/json/commit/f8817fe56c
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12602
-rw-r--r--ext/json/lib/json/common.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb
index 8a000aa359..a9682b94cf 100644
--- a/ext/json/lib/json/common.rb
+++ b/ext/json/lib/json/common.rb
@@ -168,7 +168,7 @@ module JSON
class MissingUnicodeSupport < JSONError; end
Fragment = Struct.new(:json) do
- def to_json(state = nil)
+ def to_json(state = nil, *)
json
end
end