Skip to content

Commit

Permalink
Fix JSON::Fragment#to_json signature
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 20, 2025
1 parent c31ba89 commit f8817fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/json/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def detailed_message(...)
class MissingUnicodeSupport < JSONError; end

Fragment = Struct.new(:json) do
def to_json(state = nil)
def to_json(state = nil, *)
json
end
end
Expand Down

0 comments on commit f8817fe

Please sign in to comment.