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ガイド内で行う必要はもうないだろう、との事理由です。