summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorCody Horton <[email protected]>2025-05-16 09:58:27 -0500
committerHiroshi SHIBATA <[email protected]>2025-05-19 11:19:17 +0900
commit3468811ed1dc3d907bd837f1639d587afd4ca3ae ()
treef7c3bdf0dd6a40d333e8924904f67a33ea4688c8 /ext
parent57e4176649f056966d860505694570d23200b44a (diff)
[ruby/json] fix for pretty_generate throwing wrong number of arguments error
https://.com/ruby/json/commit/8433571dcf
-rw-r--r--ext/json/lib/json/common.rb2
1 files changed, 1 insertions, 1 deletions
@@ -490,7 +490,7 @@ module JSON
# }
#
def pretty_generate(obj, opts = nil)
- return state.generate(obj) if State === opts
options = PRETTY_GENERATE_OPTIONS