なるようになるブログ

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

rails commit log流し読み(2022/03/15)

2022/03/15分のコミットです。

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

railties/CHANGELOG.md


Merge pull request #44670 from pixeltrix/fix-generator-route-url-for-namespaced-controllers

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

scaffold_controllerにnamespaced path + model nameを明示的に指定した場合、namespaced pathが考慮されたcontrollerにならないバグがあったのを修正しています。


Merge pull request #43958 from jonathanhefner/authenticate_by-short-circuit-empty-password

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

authenticate_byメソッドでpasswordnilから空の値が指定された場合に、early returnするよう修正しています。


Merge pull request #43975 from codergeek121/bugfix-for-time-select-prompt

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

time_selectメソッドのpromptオプションを指定した場合に、promptオプションに指定した値が表示されないバグがあったのを修正しています。


Merge pull request #43688 from jonathanhefner/has_secure_password-password_challenge

activemodel/lib/active_model/secure_password.rbの修正です。

has_secure_passwordでpassword challengeを行えるよう修正しています。password challengeの為のatribute(attribute名_challenge)を追加し、このattributeが指定されている場合、この値を元にdigest値のチェックを行うようになっています。


Merge pull request #44655 from lewispb/action-mailbox-instrumentation

actionmailbox/lib/action_mailbox/base.rbの修正です。

Instrument Action Mailbox processingで追加されたAction Mailboxのprocess処理に対しするinstrumentationで、payloadにmailboxのclass名ではなくインスタンスを含むよう修正しています。


Fix typo: NodeJS -> Node.js

rails guideのThe Asset Pipelineの修正です。

NodeJS -> Node.jsに移行しています。


Fix migrations compatibility for polymorphic references default index name

activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rbactiverecord/lib/active_record/migration/compatibility.rbの修正です。

Fix migrations compatibility for polymorphic references default index nameで行ったpolymorphic referencesで使用するreference nameの変更処理が、古いバージョンで作られたmigrationファイルにも影響を与えてしまうバグがあったのを修正しています。


Merge pull request #44669 from kaiquekandykoga/extract-float

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

image_tagvideo_tagsizeオプションにfloat値を指定出来るよう修正しています。


[mysql2 tests only] Flunk if test is not using SavepointTransaction

activerecord/test/cases/adapters/mysql2/nested_deadlock_test.rbの修正です。

deadlockに関するテストで、処理を行う前にtransactionの状態をチェックするよう修正しています。


remove extra core_ext/object/blank requires

各ファイルから使用していないrequireを削除しています。