なるようになるブログ

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

rails commit log流し読み(2021/10/16)

2021/10/16分のコミットです。

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

actionpack/CHANGELOG.md

railties/CHANGELOG.md


Fix system tests generated by scaffold

railties/lib/rails/generators/test_unit/scaffold/templates/system_test.rb.ttの修正です。

scaffoldで生成するsystem testのexampleコードが、テストがパスしないコードになっていたのを修正しています。


Allow Capybara driver names to be specified explicitly

actionpack/lib/action_dispatch/system_testing/driver.rbの修正です。

system testで違う名前の同じdriverを異なるテスト間で使用していた場合に、同じdriverだけが両方のテストで使われてしまうバグがあったのを修正しています。


Document alternate options for smtp_settings

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

config.action_mailer.smtp_settingsの項に、configに指定出来る他のオプションについてはMail::SMTPを参照する旨説明を追加しています。


Create directory when dumping schema cache

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

schema cacheを生成する際に、ファイル生成先のディレクトリを作成するよう修正しています。


Merge pull request #43458 from lafeber/date_time_fields

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

generatorでattributeにtimedatetime(timestamp)、dateを指定した場合に、それぞれdate_selecttime_selectdatetime_selectを使用していたのを、date_fieldtime_fielddatetime_fieldを使用するよう修正しています。browser nativeのdate/time pickerが使用されるようにする為。