Do not leak the Errors default proc when calling to_hash or as_json #26640
casperisfine wants to merge
Shopify:fix-am-errors-to-hash-default-proc
into rails:master
Shopify:fix-am-errors-to-hash-default-proc
into rails:master