2020/05/29分のコミットです。
CHANGELOGへの追加はありませんでした。
Freeze many read only ModelSchema properties
activerecord/lib/active_record/connection_adapters/schema_cache.rb
、
activerecord/lib/active_record/model_schema.rb
の修正です。
read onlyなmodel schemaのpropertiesにfreeze
を指定するよう修正しています。
Make signed_id_verifier_secret lazily evaluated
activerecord/lib/active_record/railtie.rb
、
activerecord/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.rb
、
activerecord/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の設定を修正しています。