なるようになるブログ

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

rails commit log流し読み(2018/04/09)

2018/04/09分のコミットです。

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


Avoid generating full changes hash on every save

activemodel/lib/active_model/attribute_mutation_tracker.rbactiverecord/lib/active_record/attribute_methods/dirty.rbの修正です。

save実行時に毎回変更されたattributesのHashを生成していたのを、AttributeMutationTracker経由で変更されたattributeのnameだけ取得するよう修正しています。

PERF: Recover changes_applied performanceで一度入った対応だったのですが、Revert "PERF: Recover changes_applied performance (#31698)"で誤って(意図的?)削除されてしまった為、再度入れています。


Improve the null origin error message

actionpack/lib/action_controller/metal/request_forgery_protection.rbの修正です。

request originのチェックで、originがnullだった場合に出力するエラーメッセージのグラマーの修正を行っています。