2021/01/08分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix has_many_inversing with touch: true on a belongs_to association with inverse
activerecord/lib/active_record/associations/belongs_to_association.rb
、
activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb
の修正です。
has_many_inversing
がtrue + belongs_toにtouchの指定がある場合に、touch処理で親assocationが削除済みの子associationをロードしようとしてエラーになってしまう事があったのを修正しています。
Add key_generator_hash_digest_class to the new frameworks default file
railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_2.rb.tt
、及び、Rails guideのUpgrading Ruby on Rails
の修正です。
new_framework_defaults_6_2.rb
にkey_generator_hash_digest_class = OpenSSL::Digest::SHA256
の指定を追加、及び、guideにkey generatorを変更する場合のkeyのrotaionの方法についての説明を追加しています。
Revert "Fix update with dirty locking column to not match latest object accidentally"
locking columnを明示的に更新する際に誤ってstable objectを更新してしまう可能性があったのを修正した、Fix update with dirty locking column to not match latest object accidentallyをRevertしています。
この修正により、dirtyなlock_versionにより更新を成功/失敗させる事が出来なくなったのですが、その処理に依存した使い方docに説明にされており、既存のアプリの挙動を壊さないようにするためRevertしています。
Update ActionCable docs [ci skip]
actioncable/lib/action_cable/channel/streams.rb
のdoc、及び、rails guideのAction Cable Overview
の修正です。
ActionCable.server.broadcast
のexampleコードで、明示的な{}
の指定を追加しています。指定が無いとRuby 3.0でArgumentError
になってしまう為。
Merge pull request #41030 from eileencodes/fix-preventing-writes-again
Active Recordの修正です。
ApplicationRecord
でpreventing_writes?
を実行した際に、正しい結果が取得出来ないバグがあったのを修正しています。
Merge pull request #41046 from eileencodes/dont-check-if-qc-is-enabled
activerecord/lib/active_record/query_cache.rb
の修正です。
query cacheを取得する際に、query_cache_enabled
にfalseが指定されているconnetionは取得しないようにしていたのを、取得するよう修正しています。既にcacheが有効になっている場合、明示的に除外する必要は無いはず、の為。
Unite Active Storage configs in load_defaults '6.1'
into one if-section
railties/lib/rails/application/configuration.rb
の修正です。
load_defaults
メソッド内のActive Storageに関する処理を1つにまとめています。