なるようになるブログ

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

rails commit log流し読み(2023/12/01)

2023/12/01分のコミットです。

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

activerecord/CHANGELOG.md

actionview/lib/action_view/helpers/tag_helper.rb


Link methods for Rails::Engine [ci-skip]

railties/lib/rails/engine.rbのdocの修正です。

Rails::Engineのdocの修正です。

doc内のRailsAPIについて説明している箇所にAPI docへのリンクを追加、及び、docのフォーマットの修正を行っています。


Fix example output for truncate helper [ci-skip]

actionview/lib/action_view/helpers/text_helper.rbのdocの修正です。

truncateメソッドのdocのexampleコードの実行結果が実際の結果と異なっていたのを修正しています。


Merge pull request #50188 from skipkayhil/hm-fix-ci-env

テストの修正です。

CIで設定するENV名がSeparate the CI environment from the application CI environmentで変更になった影響で、ENV['CI']に依存しているテストが正しく実行出来てない&一部通らない状況になっていたのを修正しています。


Merge pull request #50157 from Earlopain/update-erb-trim-mode-docs

rails guideのConfiguring Rails Applicationsの修正です。

config.action_view.erb_trim_modeについて説明している箇所を、現在の挙動に合わせて説明を修正、及び、404になっているリンクを削除しています。


Add active_record.config.validate_migration_timestamps option.

Active Record、railtiesの修正です。

migrationファイルのtimestamp prefixが正しいフォーマットになっているかをチェックするための、オプション(config.active_record.validate_migration_timestamps)を追加しています。オプションがtrueになっている、かつ、prefixが不正なフォーマットまたはデータの場合、exceptionをraiseするようになっています。


Merge pull request #50158 from fatkodima/fix-alias_attribute-sti

activerecord/lib/active_record/attribute_methods.rbactiverecord/lib/active_record/model_schema.rbの修正です。

STIを使用しているsubclassで、parentで定義したalias_attributeが動作しないバグがあったのを修正しています。


Merge pull request #50159 from skipkayhil/hm-deprecate-void-content

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

tag.brでvold elementにcontentが指定された場合の挙動をdeprecatedにしています。void elementにcontentを追加するのはHTML5 specでinvalid扱いの為。

参考: HTML Standard