なるようになるブログ

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

rails commit log流し読み(2021/05/15)

2021/05/15分のコミットです。

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


Display a help message if rails new is called without a path

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

rails newにpathが指定されなかった場合に、helpメッセージを表示するよう修正しています。


Fix ActiveStorage intermittent test

activestorage/test/models/attached/many_test.rbの修正です。

Fixes ActiveStorage#has_many_attached re-creating destroyed attachmentの対応の影響でhas_many_attachedのテストがエラーになってしまっていたのを修正しています。


Merge pull request #42225 from ghiculescu/as-content-type-crash

activestorage/app/models/active_storage/blob/representable.rbの修正です。

Active Storageのformat判定処理で、判別出来ないなmime typeが指定されていた場合にNoMethodErrorが発生してしまうバグがあったのを修正しています。


Fix NullRelation#to_sql to return an actual query

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

NullRelation#to_sqlが空文字を返していたのを、実際のqueryを返すよう修正しています。空文字を返す理由が無いように見え、実際に生成されるqueryを返す方が正しいのでは、という事で修正されています。