2020/01/10分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Address Ruby 2.7 kwargs warning in ActionDispatch::SystemTesting::Driver
actionpack/lib/action_dispatch/system_testing/driver.rb
の修正です。
ActionDispatch::SystemTesting::Driver
でキーワード引数に関するwarningが表示されないよう対応しています。
Merge pull request #38190 from seejohnrun/deprecate-primary-as-connection_specification_name
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
、
activerecord/lib/active_record/connection_handling.rb
の修正です。
connection_specification_name
としてprimary
を使用するのがdeprecateになりまsた。
この影響で、ActiveRecord::Base.connection_handler.retrieve_connection
、ActiveRecord::Base.connection_handler.remove_connection
の引数にprimary
を使用するのがdeprecateになっています。今後は、(文字列の)ActiveRecord::Base
を使用する必要があります。
役割が異なるconnection_specification_name
とspec_name
がどちらもデフォルトとしてprimary
を使うのが紛らわしい、かつ、connection_specification_name
はApplicationRecord
を継承したmodelではそのmodelのclass名が使われる為、connection_specification_name
のデフォルトはActiveRecord::Base
の方が良いのでは、という事で変更されています。
Merge branch 'fix_template_resolving_sort'
actionview/lib/action_view/template/resolver.rb
の修正です。
OptimizedFileSystemResolver
でテンプレートを検索する際に、locale、formats、variants、handlersを指定された順に検索するよう修正しています。
Fix the reading can write resolver test
activerecord/test/cases/database_selector_test.rb
の修正です。
resolverのread処理中の接続先を確認するテストで、接続先を確認するroleが誤っていたのを修正しています。
actioncable/app/assets/javascripts/action_cable.js
、
actioncable/app/javascript/action_cable/connection_monitor.js
の修正です。
visibility
をvisbility
にタイポしていたのを修正しています。