なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2023/11/23)

2023/11/23分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md

actionmailer/CHANGELOG.md

actionpack/CHANGELOG.md

activejob/CHANGELOG.md


Tweak message for NoDatabaseError

activerecord/lib/active_record/errors.rbの修正です。

NoDatabaseErrorで出力するエラーメッセージのフォーマットを出力しています。


Merge pull request #50138 from rails/rm-remove-duplication

activemodel/lib/active_model/attribute_methods.rbの修正です。

alias_attribute_method_definitiondefine_proxy_callメソッドの共通の処理をメソッドに切り出しています。


Fix Dirty#*_was documentation

activemodel/lib/active_model/dirty.rbのdocの修正です。

ActiveModel::Dirty moduleのdoc内の*_wasについて説明しているexampleコードで*_changeを使用していたのを*_wasを使用するよう修正しています。


Merge pull request #50049 from kmcphillips/mysql-warnings-empty

activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rbの修正です。

MySQLwarning_countが1以上、かつ、SHOW WARNINGSでwarningが取得出来なかった場合に、warningが無視されてしまっていたのを、ActiveRecord.db_warnings_actionRails側で生成した汎用的なメッセージで実行するよう修正しています。


Remove deprecated config.action_mailer.preview_path

actionmailer/lib/action_mailer/preview.rbの修正です。

deprecatedになっていたconfig.action_mailer.preview_pathを削除しています。


Remove deprecated params via :args for assert_enqueued_email_with

actionmailer/lib/action_mailer/test_helper.rbの修正です。

deprecatedになっていたassert_enqueued_email_with:args経由でparamsを渡す処理を削除しています。


Remove deprecated constant ActionDispatch::IllegalStateError

actionpack/lib/action_dispatch.rbの修正です。

deprcatedになっていたActionDispatch::IllegalStateErrorを削除しています。


Remove deprecated constant AbstractController::Helpers::MissingHelperError

actionpack/lib/abstract_controller/helpers.rbの修正です。

deprecatedになっていたAbstractController::Helpers::MissingHelperErrorを削除しています。


Remove deprecated comparison between ActionController::Parameters and Hash

actionpack/lib/action_controller/metal/strong_parameters.rbの修正です。

deprecatedになっていたActionController::ParametersHashが同一かをチェックする処理を削除しています。合わせて、この挙動を制御する為のRails.application.config.action_controller.allow_deprecated_parameters_hash_equalityを削除していmさう。


Remove deprecated Rails.application.config.action_dispatch.return_only_request_media_type_on_content_type.

actionpack/lib/action_dispatch/http/mime_negotiation.rbactionpack/lib/action_dispatch/railtie.rbの修正です。

deprecatedになっていたRails.application.config.action_dispatch.return_only_request_media_type_on_content_typeを削除しています。


Remove deprecated speaker, vibrate, and vr permissions policy directives

actionpack/lib/action_dispatch/http/permissions_policy.rbの修正です。

permissions policy directivesからdeprecatedになっていたspeaker, vibrate及びvrを削除しています。


Remove deprecated support to set Rails.application.config.action_dispatch.show_exceptions to true and false

actionpack/lib/action_dispatch/middleware/exception_wrapper.rbの修正です。

deprecatedになっていたRails.application.config.action_dispatch.show_exceptionsにtrueとfalseを指定した場合の挙動を削除しています。


Remove deprecated primitive serializer for BigDecimal arguments

activejob/lib/active_job.rbactivejob/lib/active_job/arguments.rbの修正です。

deprecatedになっていたjobのargumentにBigDecimalを指定した場合にRails 7.1で追加されたBigDecimal用のserializerを使用しない場合の処理を削除しています。合わせて、この挙動を制御する為のRails.application.config.active_job.use_big_decimal_serializeをdeprecatedにしています。


Remove deprecated support to set numeric values to scheduled_at attribute

activejob/lib/active_job/core.rbactivejob/lib/active_job/enqueuing.rbの修正です。

deprecatedになっていたscheduled_at attributeにnumeric valueを指定した場合の挙動を削除しています。


Remove deprecated :exponentially_longer value for the :wait in retry_on

activejob/lib/active_job/exceptions.rbの修正です。

deprecatedになっていたretry_on:wait引数に:exponentially_longerを指定した場合の挙動を削除しています。


Merge pull request #49743 from yoshixi/improve-action-mailbox-incineration-doc-1

rails guideのAction Mailbox Basicsの修正です。

Incineration of InboundEmailsセクションに、InboundEmailがメールが処理されたと判断する条件についての説明を追加しています。