2019/11/07分のコミットです。
CHANGELOGへの追加はありませんでした。
let environments configure load-related paths
railties/lib/rails/engine.rb
の修正です。
各load pathを設定するinitializerより先に config/environments
をロードするinitializerを先に実行するように修正しています。
environment fileでload pathの設定を出来るようにする為。
Add load hook for ActionDispatch::Request
actionpack/lib/action_dispatch/http/request.rb
の修正です。
ActionDispatch::Request
load時使用する為のaction_dispatch_response
hookを追加しています。
Document the load hook for ActionDispatch::Response [ci skip]
rails guideのGetting Started with Engines
の修正です。
Available Hooks
の項にあるhookの一覧にaction_dispatch_response
hookを追加しています。
Fix indentation in configuring.md
[ci skip]
rails guideのConfiguring Rails Applications
の修正です。
config.action_controller.enable_fragment_cache_logging
configについて説明している箇所のインデントがずれている箇所があったのを修正しています。
Append missing 's' to #silence_warning call
actionpack/test/controller/live_stream_test.rb
の修正です。
silence_warnings
をsilence_warning
にタイポしている箇所があったのを修正しています。
Merge pull request #37622 from eileencodes/multi-role-per-class
Active Recordの修正です。
複数のPollConfig
を管理する為のPoolManager
クラスを追加しています。
各PoolConfig
では、それぞれdb_config
や connection_specification_name
、schema_cache
等を管理出来るようになっており、establish_connection
やremove_connection
等のDBコネクション関係のメソッドでは、keyを指定する事でどのPoolConfig
を使用するかを指定出来るようになています。
shardingをサポートするにはクラス毎に複数のコネクションを扱えるようにする必要があり、その対応の一環。