なるようになるブログ

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

rails commit log流し読み(2021/06/11)

2021/06/11分のコミットです。

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


Make default_timezone a module instance variable

Active Recordの修正です。

default_timezoneをmodule instance variableに変更しています。


Make reading_role and writing_role module instance variables

Active Recordの修正です。

reading_rolewriting_roleをmodule instance variableに変更しています。


Make warn_on_records_fetched_greater_than a module instance variable

Active Recordの修正です。

warn_on_records_fetched_greater_thanをmodule instance variableに変更しています。


Make application_record_class a module instance variable

Active Recordの修正です。

application_record_classをmodule instance variableに変更しています。


Get rid of the unused ActiveRecord::Base.sqlite3_production_warning

Active Recordの修正です。

もう使用していないActiveRecord::Base.sqlite3_production_warningを削除しています。


Make action_on_strict_loading_violation a module instance variable

Active Recordの修正です。

action_on_strict_loading_violationをmodule instance variableに変更しています。


Convert many ActiveRecord::Base class variable into instance variables

Active Recordの修正です。

各class variableをinstance variableに変更しています。


Make verbose_query_logs a module instance variable

Active Recordの修正です。

verbose_query_logsをmodule instance variableに変更しています。


Make queues a module instance variable

Active Recordの修正です。

queuesをmodule instance variableに変更しています。


Make maintain_test_schema a module instance variable

Active Recordの修正です。

maintain_test_schemaをmodule instance variableに変更しています。


Move async_query confurations on the ActiveRecord module

Active Recordの修正です。

async_queryの設定をActiveRecord moduleで行うよう修正しています。


Copy config.active_record.* again when ActiveRecord::Base is loaded

Active Recordの修正です。

Make legacy_connection_handling a module instance variableActiveRecord::Base load時のhookでは、ActiveRecord moduleに対してconfigの設定を行わないようにしたのを、ActiveRecord::Base load時のhookでもconfigの設定を行うよう修正しています。initializerでRails.application.active_record.*を指定している場合に動作するようにする為。


Fix disable_joins when foreign key is not ID

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

join foreign keyがIDで無い場合にassociationのdisable_joinsオプションが正しく動作しないバグがあったのを修正しています。


Fix deprecation message s/Rails 7.0/Rails 7.1/

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

reading_role / writing_roleメソッドが出力するdeprecateメッセージ内のRailsのバージョンが過っていたのを修正しています。


:scissors: [ci skip]

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

不要な空行を削除しています。


Make index_nested_attribute_errors a module instance variable

Active Recordの修正です。

index_nested_attribute_errorsをmodule instance variableに変更しています。


Make time_zone_aware_attributes a class attribute

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

time_zone_aware_attributesをclass attributeに変更しています。


Make primary_key_prefix_type a class attribute

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

primary_key_prefix_typeをclass attributeに変更しています。


Make signed_id_verifier_secret a class attribute

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

signed_id_verifier_secretをclass attributeに変更しています。


Fix hot-path raising in ActionDispatch::Static

actionpack/lib/action_dispatch/middleware/static.rbの修正です。

ActionDispatch::Staticでfileがread出来るかどうかをチェックするのにFile.stat + 例外処理でチェックを行っていたのを、File.file? + File.readable?を使用して、例外処理は使わないよう修正しています。メソッドだけでチェクした方が高速な為。