なるようになるブログ

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

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

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

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

actiontext/CHANGELOG.md

activerecord/CHANGELOG.md

railties/CHANGELOG.md


Extract ActionText::TrixEditor (#51238)

Action Textの修正です。

Trixが名前に入っているメソッドやclass(e.g. ActionText::Attachable#to_trix_content_attachment_partial_pathActionText::Attachments::TrixConversion)をdeprecatdにしています。今後Trix以外のeditorもサポート予定のため。代わりに、同等の結果を返す#to_editor_content_attachment_partial_pathのようなメソッドが追加されています。


Merge pull request #56213 from claudiob/fix_debug_mode

railties/lib/rails/application/bootstrap.rbの修正です。

Rails.event.debug_modeが、Rails.env.development?がtrueの場合にtrueになっていたのを、config.log_leveldebugの場合にtrueにするよう修正しています。productionで有効にしたいこともあるため、との事です。


Fix typos in command line guide

rails guideのThe Rails Command Lineの修正です。

各セクション内のタイポを修正しています。


Fix bug when txn isolation would not reset or when requires_new is set (#56208)

activerecord/lib/active_record/connection_adapters/abstract/database_statements.rbの修正です。

current_transaction.isolationがtest envでリセットされないバグがあったのを修正しています。


Fix typos in JavaScript guide (#56300)

rails guideのWorking with JavaScript in Railsの修正です。

各セクション内のタイポの修正でを行っています。


Fix ERB strict locals parsing when comment spans multiple lines

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

ERB strict localsのparse処理で、command spansが複数行になっていた場合に、parse処理が正しく行えないバグがあったのを修正しています。


Merge pull request #56297 from zzak/re-56277

railties/lib/rails/commands/console/console_command.rbの修正です。

rails console commandを実行する際に、デフォルトでRails Executorで処理をwrapするよう修正しています。async queryのように、特定の場合exectuorでwrapされてないと動かない処理をconsoleでデフォルトで動かせるようにするため。


Fix dumping materialized views indexes

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

materialized viewsのindex名がschmaファイルに正しく出力されないバグがあったのを修正しています。