なるようになるブログ

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

rails commit log流し読み(2024/02/27)

2024/02/27分のコミットです。

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


Add punctuation on some newly added API docs [ci skip]

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

ActiveRecord::Transactions module配下の各メソッドのdocについてフォーマットを修正しています。


Do not always mark the default translation as html safe

actionpack/lib/abstract_controller/translation.rbactivesupport/lib/active_support/html_safe_translation.rbの修正です。

translateメソッドでdefault translationを必ずhtml safeと見なしていたのを、_html suffixが指定された場合のみhtml safeと見なし、それ以外の場合は明示的にhtml escape処理を実行しhtml safeになるよう修正しています。


Use Kernel#Array to wrap the default value

actionpack/lib/abstract_controller/translation.rbactivesupport/lib/active_support/html_safe_translation.rbの修正です。

translateメソッドでoptionsのチェックをする際、Arrayでwrapして必ず値がArrayになるよう修正しています。


Merge pull request #50128 from thiagopradi/main

Action Packのテストの修正です。

使用していないfixtureを削除しています。


[ci skip]Fix documentation and sample code for ActiveSupport::Logger.logger_outputs_to?

activesupport/CHANGELOG.mdactivesupport/lib/active_support/logger.rbの修正です。

ActiveSupport::Logger.logger_outputs_to?のexampleコードが実際には動作しないコードになっていたのを修正しています。


:scissors:

activesupport/CHANGELOG.mdの修正です。

行末尾の不要な空白を削除しています。


Don't require an active connection for table and column quoting

Active Recordの修正です。

tableとcolumnのquote処理をactive connectionを取得せずに行えるよう修正しています。他のconnection関連のリファクタリング同様、PoC: Add an option to disable connection checkout cachingの対応の一環。