なるようになるブログ

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

rails commit log流し読み(2025/10/31)

2025/10/31分のコミットです。

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

activesupport/CHANGELOG.md

activerecord/CHANGELOG.md

activemodel/CHANGELOG.md


Add a summary report at the end of ContinousIntegration.run (#56049)

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

ActiveSupport::ContinuousIntegrationで失敗したstepのサマリーを最後に出力するよう修正しています。失敗したstepを確認するのに、そのstepまでscrollしないで済むようにする為。


Merge pull request #56029 from rails/rm-fix-56024

railtiesの修正です。

アプリケーション名とアプリケーションの格納されているディレクトリ名が異なっている場合に、Devcontainerのvolumeが正しくmountされないバグがあったのを修正しています。


Merge pull request #55927 from flavorjones/flavorjones/granular-shard-swap-prohibition

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

shard swapping prohibition(prohibit_shard_swapping)が全てのDBに対して有効になっていたのを、同じconnection classに限定するよう修正しています。複数DBの環境で、特定のDBではshard swappingを禁止するが、それ以外の環境では、許可する、という事を出来るようにする為。


Add ActiveModel::SecurePassword.register_algorithm to register new algorithms for has_secure_password

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

has_secure_passwordで使用するalgorithmを登録するためのActiveModel::SecurePassword.register_algorithm APIを追加しています。register_algorithmには、algorithm名とその処理をクラスを指定する必要があります。

ActiveModel::SecurePassword.register_algorithm :custom_password, CustomPassword

class User < ActiveRecord::Base
  has_secure_password algorithm: :custom_password
end