rails/activemodel/test
John Hawthorn 66db67436d Avoid extra pass on AS::JSON.dump with no options
JSONGemEncoder.encode previously would always perform two passes. First
it would call `.as_json(options)`, but then would perform a second pass
"jsonify" to recursively call `.as_json` (this time without options)
until the data converges into a "JSON-ready" representation.

When options are not given, the second pass should be equivalent to the
first, so we can detect that, and only perform the "jsonify" step.

The only user-visible effect of this should be that we will pass no
options to `as_json` instead of an empty Hash, but implementations of
`as_json` should already be expected to accept that.
2023-06-29 15:37:57 -07:00
..
cases Avoid extra pass on AS::JSON.dump with no options 2023-06-29 15:37:57 -07:00
models Add beginless range support to clusivity 2022-05-20 07:46:01 +10:00
validators Revert "Merge pull request #37504 from utilum/no_implicit_conversion_of_nil" 2019-12-09 11:50:39 -03:00