2023/04/05分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actionmailer/CHANGELOG.md
Correctly dump check constraints for MySQL 8.0.16+
activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
の修正です。
MySQL 8.0.16+でcheck constraintが正しく出力されないバグがあったのを修正しています。
Merge pull request #47630 from bensheldon/action_mailer_around_delivery
Action Mailerの修正です。
mailの送信前後に処理を実行するbefore_deliver
/before_deliver
/around_deliver
を指定出来るよう修正しています。
class EventsMailer < ApplicationMailer after_deliver do User.find_by(email: message.to.first).update(email_provider_id: message.message_id, emailed_at: Time.current) end end
allow pre-7.1 migrations to use legacy index names with create_table
activerecord/lib/active_record/migration/compatibility.rb
の修正です。
Rails 7.1より前に作られたmigrationファイル内で実行するcreate_table
について、Fix Rails generated index name being too longで変更になったindex名ではなく、古いindex名で値が作成されるよう修正しています。
Fix duplicate Gemfile entry warning
.github/workflows/mdl.yml
、
Gemfile
の修正です。
Gemfile
に同じgemが重複して定義されていたのを修正しています。
Merge pull request #47840 from p8/docs/actionpack-intros
actionpack/lib/action_controller.rb
、
actionpack/lib/action_dispatch.rb
のdocの修正です。
Action ControllerとAction Dispatchのdocにintroを追加しています。
Add context when changing secret_key_base
rails guideのSecuring Rails Applications
の修正です。
secret_key_base
を変更した場合に影響がある機能についての説明を追加しています。