2023/05/09分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
MessageEncryptor
,MessageVerifier
, andconfig.active_support.message_serializer
now accept:message_pack
and:message_pack_allow_marshal
as serializers.config.action_dispatch.cookies_serializer
now accepts:message_pack
and:message_pack_allow_marshal
as serializers.
Link to QueryMethods#and [ci-skip]
activerecord/lib/active_record/relation/spawn_methods.rb
のdocの修正です。
merge
メソッドのdoc内のQueryMethods#and
メソッドについて説明している箇所で、QueryMethods#and
のdocにリンクされるよう修正しています。
Unify Message{Encryptor,Verifier} serializer config
Active Supportの修正です。
Switch ActiveSupport::MessageVerifier's default serialization to JSONとSwitch ActiveSupport::MessageEncryptor Default Serializer to JSONで追加されたMessageEncryptor
及びMessageVerifier
関連のconfigを1つにまとめて、config.active_support.message_serialize
に値(:json_allow_marshal
、:json
、:marshal
)を指定すれば良いようにしています。
Default message serializer to :json_allow_marshal
Active Supportの修正です。
デフォルトのmessage serializerを:json
から:json_allow_marshal
に変更しています。Rails 7.0でmarshal formatで作成したencrypted message等を、Rails 7.1にアップグレード後にread出来るよにする為。
Support :message_pack as message serializer
Active Supportの修正です。
MessageEncryptor
及びMessageVerifier
のserializerにmsgpackを使用出来るよう修正しています。msgpackを使用したい場合、config.active_support.message_serializer
に:message_pack
または:message_pack_allow_marshal
を指定すれば良いようになっています(:message_pack_allow_marshal
を指定した場合、fallback処理でMarshalが使われるようになります)。
Support :message_pack as cookies serializer
Active Supportの修正です。
cookieのserializerにmsgpackを使用出来るよう修正しています。msgpackを使用したい場合、config.action_dispatch.cookies_serializer
に:message_pack
または:message_pack_allow_marshal
を指定すれば良いようになっています。
Fix ordered list markdown syntax in multi-DB guide
rails guideのMultiple Databases with Active Record
の修正です。
Handling Associations with Joins across Databases
の項のリストのフォーマットを修正しています。
Merge pull request #48166 from zzak/ar-associations
rails guideのActive Record Associations
の修正です。
guide全体について、フォーマットの修正や、言い回しの修正等を行っています。
Merge pull request #48123 from cpjmcquillan/cm/remove-redundant-test-setup
actionpack/test/dispatch/routing/inspector_test.rb
の修正です。
同じ内容をチェックしているテストが複数あったのを削除しています。
Merge pull request #48167 from p8/activestorage/document-attachment-associations-and-scopes
activestorage/app/models/active_storage/attachment.rb
、
activestorage/app/models/active_storage/blob.rb
のdocの修正です。
ActiveStorage::Attachment
、Blob
のassociationとscopeにdocを追加しています。
Clean up docs and code using mysql2
Active Recordの修正です。
MySQL関連のドキュメントとコードの修正として、サポートしているadapterのリストにtrilogy
を追加、type informationが正しく設定されてるよう設定処理を個別のadapterに移動、trilogy用のload hoookを追加、などを行っています。