2022/02/09分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Fix PG.connect keyword arguments deprecation warning on ruby 2.7
- Reversed the order of
INSERT
statements instructure.sql
dumps
Add job_id and exception message to ActiveJob retry/discard logging
activejob/lib/active_job/log_subscriber.rb
の修正です。
Acitve Jobのretry/discardのログに、job idとexception messageを含むよう修正しています。
Merge pull request #44329 from attack/mg-encryption-exclusion
activerecord/lib/active_record/encryption/configurable.rb
の修正です。
ActiveRecord::Encryption
のparamsのfilter処理で変数名をタイポしていたのを修正しています。
Merge pull request #44284 from skateman/activerecord-arel-order-hash
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
order
のkeyにArel::Nodes::Node
、Arel::Attribute
を指定した場合も動作するよう修正しています。
Merge pull request #44354 from rails/to-fs-as-the-primary
deprecatedになった#to_s(:format)
の代わりに、#to_fs
メソッドを使用出来るよう修正しています。元々は、#to_formatted_s
メソッドがその用途に追加されたのですが、頻繁に使うメソッドとしては名前が長い、という事になり、#to_fs
メソッドが追加されました。
Merge pull request #44347 from nvasilevski/fix-postgresql-reconnection-test-assertion
activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb
の修正です。
reconnect
でエラーになる事を確認するテストで、expectに指定するexceptionが誤っていたのを修正しています。
Fix install_auto_filtered_parameters method rename
activerecord/test/cases/encryption/configurable_test.rb
の修正です。
Setup on_encrypted_attribute_declared hook only onceでinstall_auto_filtered_parameters
がinstall_auto_filtered_parameters_hook
にリネームされたのですが、古い方の名称を参照している箇所が残っていたのを修正しています。
Fix PG.connect keyword arguments deprecation warning on ruby 2.7
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
の修正です。
PG.connect
呼び出し時にキーワード引数に関するwarningが出る事があったのを修正しています。
Reverse the order of INSERT
statements in structure.sql
dumps
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
の修正です。
structure.sql
を生成する際に、INSERT
statementsをreverseしてから出力するよう修正しています。schema_migrations
のINSERT
statementsをコンフリしづらくする為。
Fix empty request inside helpers test
actionview/lib/action_view/test_case.rb
の修正です。
ActionView::TestCase
でrequest
オブジェクトを参照出来るよう修正しています。
Merge pull request #44367 from shioyama/improve_activemodel_attribute_methods_naming
activemodel/lib/active_model/attribute_methods.rb
の修正です。
ActiveModel::AttributeMethods
配管のmoduleやaccessorをより適切な名前にリファクタリングしています。