2019/09/16分のコミットです。
CHANGELOGへの追加はありませんでした。
Avoid expensive tracking objects for prepared statements
activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
の修正です。
Make prepared statement status thread and instance-specificでrace condition対策の為に、prepared statementの状態の管理にConcurrent::ThreadLocalVar
を使うようになったのですが、Concurrent::ThreadLocalVar
は処理が遅い為、スレッドローカルストレージ + Setで対応するようリファクタリングしています。
activerecord/test/cases/insert_all_test.rb
の修正です。
rubocopの設定に違反している箇所があったのをまとめて修正しています
Expand on helpers available in Action Mailer
rails guideのAction Mailer Basics
の修正です。
Using Action Mailer Helpers
の項に、mailer
でmailerのインスタンスを参照出来ること、及び、message
でmessageのインスタンスを参照出来る事についての説明を追加しています。
document how to customize inflections in autoloading [skip ci]
rails guideのAutoloading and Reloading Constants (Zeitwerk Mode)
の修正です。
autoload時のinflectionsのカスタマイズ方法について説明したCustomizing Inflections
の項を追加しています。
renames variable in example [skip ci]
rails guideのAutoloading and Reloading Constants (Zeitwerk Mode)
の修正です。
inflectionsをカスタマイズする際のexampleで変数名に誤りがあったのを修正しています。
Fixes #36956 by dup'ing the value and entry object returned from MemoryStore.
activesupport/lib/active_support/cache/memory_store.rb
の修正です。
Cache::MemoryStore
が値を返す際、dupした値を返すよう修正しています。返された値を変更した際に、cacheにある値にもその変更内容が反映されてしまうのを避ける為。
Merge pull request #37199 from seejohnrun/reduce-surface-area-of-connection-specification
Active Recordの修正です。
ConnectionSpecification
配下にあったConnectionUrlResolver
とResolver
クラスをそれぞれ別のnamespace配下に移動しています。最終的にConnectionSpecification
は消す方向にしたいらしく、その準備との事です。
Remove Capistrano from asset pipeline guide
rails guideのThe Asset Pipeline
の修正です。
Precompiling Assets
の項からCapistranoでデプロイする方法についての説明を削除しています。
Capistrano is no longer a dominant force in the deployment strategy f…でデフォルトのGemfileからCapistranoは削除されており、Capistranoに関する説明をRailsガイド内で行う必要はもうないだろう、との事理由です。