なるようになるブログ

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

rails commit log流し読み(2021/02/23)

2021/02/23分のコミットです。

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

activesupport/CHANGELOG.md

actionpack/CHANGELOG.md


Fix proxying keyword arguments for ActiveSupport::CurrentAttributes.

activesupport/lib/active_support/current_attributes.rbの修正です。

ActiveSupport::CurrentAttributesmethod_missingでキーワード引数をdelegate出来るよう修正しています。


Allow passing anything with #to_str into redirect_to

actionpack/lib/action_controller/metal/redirecting.rbの修正です。

redirect_toのlocationに、Addressable::URIのような#to_strメソッドを持っているクラスを指定出来るよう修正しています。


Merge pull request #41516 from kamipo/serialized_value_should_be_type_casted_by_subtype

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

enum attributeのserialize処理で、subtypeでtype castが行われるよう修正しています。


Address CI failure due to non-determined sort order

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

assertionで値を比較する際に、値をidでsortしてからチェックするよう修正しています。 sortを指定しないと結果が不定になる為。