8.1.3
- Rails: 4 events in the last 90 days
- Rails: 4th Release in the last 90 days
What happened
Active Support Fix JSONGemCoderEncoder to correctly serialize custom object hash keys. When hash keys are custom objects whose as_json returns a Hash, the encoder now calls to_s on the original key object instead of on the as_json result. Before: hash = {CustomKey.new(123) => "value"} hash.to_json # => {"{:id=>123}":"value"} After: hash.to_json # => {"custom_123":"value"} Dan Sharp Fix inflections to better handle o…
Summary assembled by rule from the sources below