2023/06/01分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Set default_shard from connects_to hash
activerecord/lib/active_record/connection_handling.rb
の修正です。
connected_to
のshards
hashに指定した最初の値を、defaultのshardとして扱うよう修正しています。元々は、default
というkeyを指定する必要があったのですが、default
というキーを使いたくない、という要望があった為、暗黙的に最初の値をdefaultとして扱うよう修正しています。
Add role to connection payload
activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb
の修正です。
connection接続時のActiveSupport::Notifications
のinstrumentのpayloadにrole
を含むよう修正しています。
Handle sanitize_options
in simple_format
helper
actionview/lib/action_view/helpers/text_helper.rb
の修正です。
simple_format
メソッドからsanitize
メソッドを呼び出す際に指定するオプションをsimple_format
メソッドに指定(sanitize_options
)出来るよう修正しています。
simple_format("<a target=\"_blank\" href=\"http://example.com\">Continue</a>", {}, { sanitize_options: { attributes: %w[target href] } }) # => "<p><a target=\"_blank\" href=\"http://example.com\">Continue</a></p>"
Merge pull request #48354 from ally1002/guide-back-to-top
rails guideの修正です。
guideに、topに戻るボタンを追加しています。
Cleanly fallback when failing to tokenize ERB templates
actionview/lib/action_view/template/handlers/erb.rb
、
activesupport/lib/active_support/core_ext/erb/util.rb
の修正です。
ERB templateのtokenize処理でエラーになった場合に、行情報を使用した古い出力形式にfallback出来ていないケースがあったのを修正しています。Properly fallback when ERB column can't be computedのフォローアップ。