なるようになるブログ

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

rails commit log流し読み(2022/10/11)

2022/10/11分のコミットです。

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

activerecord/CHANGELOG.md


Add pre-defined variant examples

activestorage/app/models/active_storage/attachment.rbのdocの修正です。

variantpreview、及び、representationメソッドのdocに、定義済みのvariantを使用する場合の例を追加しています。


Update CHANGELOG with PR #45427 changes (#46215)

actionpack/CHANGELOG.mdの修正です。

permissions policy directivesにidle_detectionweb_share等を追加した、Update permissions policy listの対応についてCHANGELOGにエントリーを追加しています。


Enable verbose mode in test and report warnings as errors

Rails自体のテスト実行時にデフォルトでRubyのwarningを有効化し、Rubyのwarningが出力された場合、テストがfailになるよう修正しています。envにRAILS_STRICT_WARNINGS、または、CIが指定された場合のみfailになるようになっています。


Validate options when managing columns and tables in migration

Active Recordの修正です。

create_tableadd_column等のmigrationメソッドにサポートしていないオプションが指定された場合に、単純に無視していたのを、エラーをraiseするよう修正しています。


Fix a warning in Active Record's Rakefile

activerecord/Rakefileの修正です。

redefinitionに関するwarningが出ていたのを修正しています。


Better fix for the redefinition warning in Active Record Rakefile

activerecord/Rakefileの修正です。

先のwarningの為の修正をaliasを使って行っていたのを、alias_methodメソッドを使用するよう修正しています。