なるようになるブログ

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

rails commit log流し読み(2021/01/26)

2021/01/26分のコミットです。

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

activejob/CHANGELOG.md


Fixing delegated types example.

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

Delegated Typesのdoc内のexampleコードでタイポしている箇所があったのを修正しています。


Merge pull request #41214 from etiennebarrie/activejob-rescue_from-exception

Active Jobのrescue_fromStandardErrorとその子どものExceptionしかrescueしないようになっていたのを、全てのExceptionをrescueするよう修正しています。


Guides: Remove unneeded statement about stylesheet_pack_tag [ci skip]

rails guideのWebpackerの修正です。

Using Webpacker for CSSの項からstylesheet_pack_tagに関する不要な説明を削除しています。


Merge pull request #41238 from samjewell/sj/fix-has_one-create_associated-test-names

activerecord/test/cases/associations/has_one_associations_test.rbの修正です。

has_one associationのテスト名を適切な名前に修正しています。


Remove SET NAMES, set collation using variable

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

collationを設定するのに、SET NAMESを使用していたのを、variableを使用するよう修正しています。

SET NAMESの指定方法に誤りがあり、MySQLのバージョンによってはエラーになってしまう為。