index

id: 9e70aeed5bf1ef86f744f0b2a4812ba4dcf53788c63d086db01873fb2e4c5f90

id (bech32): note1nec2am2m78hcda6y7ze2fqft5nw02dugcc7ssmdsrpelktjvt7gqwptc2u

sig: 37fd47d89ddc451f3be970340f4b214fe71245ac93d339ae581b7bad94d44a1d2d1a034e06cfd767d4bde1449539c5475092330ce7c6c70c51db99e3a03a4777

created_at: 2023-08-18 23:47:51 +0900

created_at (unix time): 1692370071

content:

ActiveRecordを使うとActiveSupportが一緒についてきて to_json の挙動を変えてくれちゃって自作の検証機構が上手く動かなくなる罠にハマってた…

hash.to_json じゃなくて JSON.generate hash を使えとのことで…

https://github.com/rails/rails/blob/main/activesupport/lib/active_support/core_ext/object/json.rb#L34-L46
https://qiita.com/kjirou/items/74906b8ad43c72b63a02

JSON