なるようになるブログ

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

rails commit log流し読み(2021/12/06)

2021/12/06分のコミットです。

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


Convert attributes to Hash in authenticate_by

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

authenticate_byメソッドで引数に指定されたattributeをHashに変換してから処理を行うよう修正しています。permitされていないcontroller paramsが指定された場合に、エラーになるようにする為。


Revise docs/comments for the debug gem

railties/lib/rails/generators/rails/app/templates/Gemfile.ttrails guideのDebugging Rails Applicationsの修正です。

Debugging Rails Applications guideにZeitwerkと非互換になる挙動についての詳細を記載した、Autoloading Caveatの項を追加し、railties/lib/rails/generators/rails/app/templates/Gemfile.tt内のdebug gemのコメントはguideへのリンクを記載するだけにしています。