2023/05/22分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Run after_bundle blocks with app:template command
railties/lib/rails/generators/rails/app/app_generator.rb
、
railties/lib/rails/tasks/framework.rake
の修正です。
app:template
コマンド実行時に、自動でbundle install
及び、after_bundle
callbackを実行するよう修正しています。
Avoid unnecessary allocations in picture_tag
actionview/lib/action_view/helpers/asset_tag_helper.rb
の修正です。
picture_tag
メソッドで不要なオブジェクト生成を減らすようリファクタリングしています。
actionpack/lib/action_dispatch/middleware/show_exceptions.rb
のdocの修正です。
ActionDispatch::ShowExceptions
classのdocのフォーマットを修正しています。
TrilogyAdapter: translate Trilogy::TimeoutError
in AdapterTimeout
activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb
の修正です。
TrilogyAdapterでtimeoutが発生した場合に、エラーをActiveRecord::AdapterTimeout
でwrapするよう修正しています。他のadapterと挙動を合わせる為。
Merge pull request #48271 from piecehealth/fix_ar_conn_verify
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
の修正です。
checkout_and_verify
メソッド内でStandardError
をrescueして後処理をしていたのを、Exception
をrescueするよう修正しています。Rackの処理でtimeoutが発生した場合はException
の子クラスがraiseされるようになっており、それらのexceptionが発生した場合に後処理が行われるようにする為。
Link to ActionView::Helpers top level namespace for all helpers
rails guideのAction View Form Helpers
の修正です。
イントロ部分にあるAPI docへのリンクをActionView::Helpers::FormHelper
へのdocからActionView::Helpers
のtopに変更しています。
ERB::Util.html_escape_once
always returns an html_safe
string
activesupport/lib/active_support/core_ext/erb/util.rb
の修正です。
ERB::Util.html_escape_once
が必ずhtml_safe
な文字列を返すよう修正しています。元々は、引数のString
がhtml_safe
な内容だった場合、String
をそのまま返していたのですが、それだと、
<p><%= html_escape_once("this & that & the other") %></p>
のような使いかたをした場合に、escape処理が二重に発生してしまう、という問題があった為、必ずhtml_safe
な文字列を返すよう修正しています。
Fix change_in_place? for binary serialized columns
Active Record、Active Modelの修正です。
binary columnにserialized attributeを保持するようにしていた場合に、値の変更検知が正しく行えてなかったのを修正しています。
actionmailer/test/message_delivery_test.rb
の修正です。
Active Jobに正しくメールがenqueされている事を確認するテストを削除しています。他のテストで同じ確認が出来ている為。
Docs: Fix queue_as
doc wording [ci skip]
activejob/lib/active_job/queue_name.rb
のdocの修正です。
queue_as
メソッドのdocの言い回しを修正しています。