なるようになるブログ

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

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

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

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

railties/CHANGELOG.md


Deletes AS::Dependencies::Blamable

Action Pack、Active Supportの修正です。

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


Add docs for insert_all with scopes

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

insert_allメソッドのdocに、scope + insert_allを実行した場合の例を追加しています。


Quote the arguments passed to the new Contains/Overlaps node types to align with the behaviour of existing predicates

activerecord/lib/arel/predications.rbの修正です。

他のnodeと同様に、Contains/Overlaps nodes で引数をquoteするよう修正しています。


Fix number_to_human_size's result [ci skip]

rails guideのAction View Helpersの修正です。

number_to_human_sizeメソッドの実行結果が、実際の結果と異なっていたのを修正しています。


Use type.serializable? in unboundable?

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

unboundable?メソッドで、serialize出来るかどうかをチェックするのにtype.serializable?メソッドを使用するよう修正しています。


Add app concern and test keepfiles to generated engine plugins

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

rails engineを生成する際に、app concernディレクトリ、及び、テストファイル用のディレクトリを作成するよう修正しています。


Delegate serializable? to subtype on Enum

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

serializable?チェックをsubtypeで行うよう修正しています。現在Enumの値が全てserialize可能とは限らない為。


Merge pull request #41641 from kamipo/merge_select_values

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

異なるmodel間でのselect valuesのmerge処理が正しく動作しないバグがあったのを修正しています。


Deletes logging from AS::Dependencies

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

ActiveSupport::Dependenciesのlogging機能を削除しています。