なるようになるブログ

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

rails commit log流し読み(2020/06/10)

2020/06/10分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md

actionpack/CHANGELOG.md


Remove white list word

actiontext/test/dummy/app/controllers/messages_controller.rbの修正です。

コメントに"white list"という用語が残ってしまっていたのを修正しています。


Remove more references to white list

actionpack/lib/action_controller/metal/strong_parameters.rbのdoc、及び、rails guideのActive Support Core Extensionsの修正です。

まだコメントに"white list"という用語が残ってしまっていたのを修正しています。


Fix Active Support failure for redis 4.2.0 with Ruby 2.8.0-dev

Redis gemのバージョンを4.2.0に更新しています。Ruby 2.8.0-devでビルドが通るようにする為。


Strict match when choosing cookie domain for host

actionpack/lib/action_dispatch/middleware/cookies.rbの修正です。

cookie storeのdomainに複数domainを指定した場合に、cookieのdomainに複数domain内のリクエストに部分一致した最初のdomainを返していたのを、完全一致するdomainがある場合はそのdomainを返すよう修正しています。


Merge pull request #39466 from jonathanhefner/guide-form_helpers

rails guideのAction View Form Helpersの修正です。

collection_selectcollection_radio_buttonsメソッドの説明を追加、及び、 collection_check_boxesメソッドについてのexampleの追加を行っています。


Merge pull request #39553 from jonathanhefner/guide-credentials-edit

rails guideのSecuring Rails Applicationsの修正です。

guide全体の言い回し、グラマーの修正を行っています。


Deprecate map! and collect! on ActiveRecord::Result

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

ActiveRecord::Resultmap!collect!メソッドをdeprecateにしています。

bang付きなのでActiveRecord::Result自身を変更しそうなメソッド名なのですが、実際はActiveRecord::Result自身は変更しないメソッド(mapのalias)で紛らわしい為deprecateになっています。


Use indifferent access for config hash in actioncable postgresql test

actioncable/test/subscription_adapter/channel_prefix.rbの修正です。

Action Cableのテストで接続情報の渡し方が誤っていた箇所があったのを修正しています。