なるようになるブログ

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

rails commit log流し読み(2018/10/09)

2018/10/09分のコミットです。

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


fix broken link in Action Cable guides and readme [ci skip]

rails guideのAction Cable Overview、及び、actioncable/README.mdの修正です。

Action Cable + Deviseで認証をやる方法について説明したブログ(https://greg.molnar.io/blog/actioncable-devise-authentication/)へのリンクが壊れていたのを修正しています。


Fix directly uploading using a MIME type synonym

activestorage/app/controllers/active_storage/disk_controller.rbの修正です。

ActiveStorage::DiskController#acceptable_content?メソッドでcontent typeのチェックを行う際に、 MIME type synonymを使用するよう修正しています。

MIME typeにsynonymとして登録されているMIME(e.g.application/x-gzip)が使用された場合にもチェックが通るようにする為。


Point to requiring the ASt engine in the installation instructions [ci skip]

activestorage/README.mdの修正です。

rails active_storage:installがエラーになる場合、config/application.rbrequire "active_storage/engine"があるか確認してください、という注記を追加しています。


Call define_attribute_methods before assert_no_queries to address CI flakiness

Active Recordのテストの修正です。

assert_no_queriesを使用する前にdefine_attribute_methodsを呼び出すよう修正しています。build / newメソッドを実行する際にtable_exists?メソッドが実行されてしまい、assert_no_queriesがエラーになってしまうのを避ける為。