なるようになるブログ

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

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

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

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


Deletes AS::Dependencies.warnings_on_first_load

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

不要になったActiveSupport::Dependencies.warnings_on_first_loadを削除しています。


Replaces references to internal AS::Dependencies attributes in the AS guide

rails guideのActive Support Core Extensionsの修正です。

mattr_readerについて説明している箇所のexampleとして、既に存在しないActiveSupport::Dependenciesのattributesが使用されていたのを、ActiveStorageを使用するよう修正しています。


Merge pull request #41648 from alkesh26/fixed-incorrect-changelog-output

activesupport/CHANGELOG.mdの修正です。

Enumerable#maximumメソッドについてのエントリー内のexampleコードの結果が、実際の結果と異なっていたのを修正しています。


Fix between stringify enum values to return the expected result

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

enumのcast処理で、指定された値がmappingに定義されていない場合、 subtypeでcast処理を行うよう修正しています。


Use serializable? instead of rescue ::RangeError

activemodel/lib/active_model/attribute.rbactiverecord/lib/active_record/relation/query_attribute.rbの修正です。

値が定義域外だった場合の対応を、RangeErrorをrescueする事で対応していたのを、serializable?でチェックするよう修正しています。