なるようになるブログ

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

rails commit log流し読み(2020/05/04)

2020/05/04分のコミットです。

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


[ActiveStorage] Rewrite Blob.unattached scope code using where.missing

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

Blob.unattached scopeを、where.missingを使用するようリファクタリングしています。


Support reentrant calls to RakeCommand.perform

railties/lib/rails/commands/rake/rake_command.rbrailties/lib/rails/tasks/statistics.rakeの修正です。

他のtop-level task実行された場合にRakeCommand.performが再度実行出来ないがバグがあったのを修正しています。


Adds :inline option to Action Mailbox generator rails_command

actionmailbox/lib/generators/action_mailbox/install/install_generator.rbの修正です。

Action Mailboxのmigration生成処理で、inlineオプションを指定して直接Rails::Command.invokeを実行するよう修正しています。


Fix rewhere to allow overwriting association queries

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

rewhereでassociation queryのオーバーライドが出来るよう修正しています。


Test actual query and result

activerecord/test/cases/finder_test.rbactiverecord/test/cases/relation/where_chain_test.rbの修正です。

rewhereのテストで結果を比較するのに、where_clauseやreleationで比較していたのを、to_aした値で比較するよう修正しています。