2024/09/09分のコミットです。
CHANGELOGへの追加はありませんでした。
remove blank line from the end of passwords_controller template to keep rubocop happy (#52833)
railties/lib/rails/generators/rails/authentication/templates/controllers/passwords_controller.rbの修正です。
ファイル末尾の空行を削除しています。
Store session_id in cookies only once (#52831)
railties/lib/rails/generators/rails/authentication/templates/controllers/concerns/authentication.rbの修正です。
authentication generatorが生成するcontroller内の処理で、session_idのcookiesへの保存が2回行われていたのを、一度だけ行うよう修正しています。
Simplify the authentication concern
railties/lib/rails/generators/rails/authentication/templates/controllers/concerns/authentication.rbの修正です。
authentication generatorが生成するconcernについて、不要な分岐の削除、一度しか使用していないメソッドの削除等を行っています。
Strongly dislike the _1 aesthetic
railties/lib/rails/generators/rails/authentication/templates/models/user.rbの修正です。
authentication generatorが生成するmodelで_1を使用している箇所があったのを使用しないよう修正しています。_1が好きではないため、との事です。
Remove unused permission_policy test helpers
actionpack/test/dispatch/permissions_policy_test.rbの修正です。
使用していないテスト用のhelperメソッドを削除してます。
Merge pull request #52822 from byroot/active-model-alias
activemodel/lib/active_model/attribute_methods.rbの修正です。
modelでdefine_attribute_methods及びattr_accessorで独自のattributeを指定している場合に、そのattributeに対するalias_attributeが正しく動作しないバグがあったのを修正しています。
Revert "alias_attribute: handle user defined source methods"
直前の`activemodel/lib/active_model/attribute_methods.rbの対応をRevertしています。まだ対応中のPRを誤ってmergeしてしまった為、との事です
alias_attribute: handle user defined source methods
activemodel/lib/active_model/attribute_methods.rbの修正です。
modelでdefine_attribute_methods及びattr_accessorで独自のattributeを指定している場合に、そのattributeに対するalias_attributeが正しく動作しないバグがあったのを、改めて修正しています。