なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2020/07/05)

2020/07/05分のコミットです。

CHANGELOGへの追加はありませんでした。


Use Active Record signed IDs in Active Storage

Active Storageの修正です。

Active Storageで独自にsigned idsを使用してrecordを取得する為の機能を実装していたのを、Add signed ids to Active Record (#39313)で追加された機能を使用するよう修正しています。


Disable template digesting for Active Storage controllers

activestorage/app/controllers/active_storage/base_controller.rbの修正です。

Active Storageのcontrollersでtemplate digestingを無効化するよう修正しています。

proxy用のcontrollerではhttp_cache_foreverを使っているのですが、viewが無い為template digestingを有効化しているとメソッド実行時にエラー(Couldn't find template for digesting)になってしまう為、エラーになるのを避ける為に無効化するようにしています。