なるようになるブログ

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

rails commit log流し読み(2019/08/20)

2019/08/20分のコミットです。

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


Prevent TagBuilder modify options

actionview/lib/action_view/helpers/tag_helper.rbの修正です。

TagHelper#tag_optionメソッドでvalueのescape処理後の値をdupして、元の値が変更されないよう修正しています。


activesupport: Memoize name object allocation in CurrentAttributes.instance

activesupport/lib/active_support/current_attributes.rbの修正です。

CurrentAttributes.instanceメソッドでinstance keyの値をメモ化するよう修正しています。


Keep the name of the releases note consistent

guides/source/documents.yamlの修正です。

6.0 Release Notesの名前を他のリリースノート同様に、日付を入れた名前(Version 6.0 - August 2019)に修正しています。


Generate keep file in tmp/pids

railties/lib/rails/generators/rails/app/app_generator.rbの修正です。

rails newでアプリを作成する際にtmp/pidsディレクトリを作成するよう修正しています。

Add pidfile option to puma config templateで、Puma config templateでPIDFILEtmp/pids/server.pidを指定するようになった影響で、rackupでサーバを起動する際もtmp/pidsディレクトリが必要になった為。


Merge pull request #36985 from anmolarora/fix-take-memoization

activerecord/lib/active_record/relation.rbの修正です。

takefind_by / whereと合わせて使用した場合に、最初にtakeした結果がクリアーされず、以降のtakeで指定した条件どおりの値が取得されないバグがあったのを修正しています。