なるようになるブログ

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

rails commit log流し読み(2021/03/22)

2021/03/22分のコミットです。

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

activerecord/CHANGELOG.md


:scissors: [ci skip]

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

各テストファイルから不要な空行を削除しています。


Allow both current_page?(url_hash) and current_page?(**url_hash) on Ruby 2.7

actionview/lib/action_view/helpers/url_helper.rbの修正です。

current_page?に対して、Ruby 2.7でurl_hash**url_hashどちらの形式でも指定出来るよう対応しています。


Revert "Passing in a Hash instance as non-kwargs parameters has to be curly braced now"

actionview/test/template/url_helper_test.rbの修正です。

先の対応により不要になったcurrent_page?メソッドの引数へのcurly braceの指定を削除しています。


Merge pull request #41602 from intrip/40550-fix-throw-abort-on-belongs-to-third-level-rollback

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

belongsdependent :destroyがnestしている場合に、親レコードの削除処理でabortthrowされた場合にも、レコードの削除処理が継続してしまうバグがあったのを修正しています。


Fix Float::INFINITY assignment to datetime attributes

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

datetime columsにFloat::INFINITYを指定した場合に、値がnilになってしまうバグがあったのを修正しています。


Make infinity handling symmetrical in cast and deserialize

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

castdeserializeメソッドで、infinityに対する処理が対になるよう修正しています。


Remove some references to OrderedHash

Active Supportの修正です。

deprecatedになっているOrderedHashについての説明を各docから削除、及び、使用していないactive_support/ordered_hashに関するrequireを削除しています。