なるようになるブログ

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

rails commit log流し読み(2020/05/29)

2020/05/29分のコミットです。

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


Freeze many read only ModelSchema properties

activerecord/lib/active_record/connection_adapters/schema_cache.rbactiverecord/lib/active_record/model_schema.rbの修正です。

read onlyなmodel schemaのpropertiesにfreezeを指定するよう修正しています。


Make signed_id_verifier_secret lazily evaluated

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

Active Recordのsigned idで使用するsecretの生成処理を遅延評価するよう修正しています。

secret key baseが設定される前に実行されてエラーになるのを避ける為。


Refactor build_where_clause to avoid extra allocation and code duplication

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

build_where_clauseメソッドで不要なオブジェクトの生成を行わないようリファクタリングしています


association in TableMetadata is not association but reflection

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

TableMetadataクラスでreflectionをassociationという変数名で保持していたのをreflectionに修正しています。


Support type casting for grandchild's attributes

Active Recordの修正です。

grandchildのattributesのtype castも行われるよう修正しています。


Allow composed_of conditions to be unscoped

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

composed_ofのconditionをunscope出来るよう修正しています。


Prefer no allocation start/end_with? over String#[] ==

String#[] ==を使用して値のチェックをしていた箇所を、start_with? / end_with?を使用するよう修正しています。


Allow where with through association to be expanded condition

activerecord/lib/active_record/relation/predicate_builder.rbactiverecord/lib/active_record/table_metadata.rbの修正です。

whereに指定したthrough associationがexpanded conditionになるよう修正しています。


Reset statement cache for association if table_name is changed

Active Recordの修正です。

table nameが変更された場合、statement cacheをresetするよう修正しています。


Don't mark issues on a milestone as stale

.github/stale.ymlの修正です。

milestoneが指定されているissueは自動でcloseしないようProbotの設定を修正しています。