なるようになるブログ

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

rails commit log流し読み(2023/03/03)

2023/03/03分のコミットです。

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

actionpack/CHANGELOG.md

activerecord/CHANGELOG.md

activesupport/CHANGELOG.md

actionview/CHANGELOG.md

activestorage/CHANGELOG.md


Remove deprecated behavior on Request#content_type

Action Pack、railtiesの修正です。

deprecatedになっていた古いRequset#content_typeの挙動、及び、config.action_dispatch.return_only_request_media_type_on_content_typeを削除しています。


Remove deprecated ability to assign a single value to config.action_dispatch.trusted_proxies

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

deprecatedになっていたconfig.action_dispatch.trusted_proxiesにsingle valueを設定できるようにする対応を削除しています。


Remove deprecated poltergeist and webkit (capybara-webkit) driver registration for system testing

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

deprecatedになっていたsystem testingのpoltergeistwebkitのサポートを削除しています。


Remove deprecated ActiveRecord::Base config accessors

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

deprecatedになっていたActiveRecord::Baseのconfig accessorsを削除しています。


Remove deprecated config.active_record.partial_writes

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

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


Remove deprecated override of Enumerable#sum

Active Record、Active Supportの修正です。

deprecatedになっていたEnumerable#sumのoverride処理を削除しています。


Remove deprecated Tasks::DatabaseTasks.schema_file_type

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

deprecatedになっていたTasks::DatabaseTasks.schema_file_typeを削除しています。


Remove deprecated ActiveSupport::PerThreadRegistry

Active Supportの修正です。

deprecatedになっていたActiveSupport::PerThreadRegistryを削除しています。


Remove deprecated option to passing a format to #to_s

Active Support、railtiesの修正です。

deprecatedになっていた各クラスの#to_sにformatを渡した場合の挙動を削除しています。合わせて、この挙動を変更する為のconfig.active_support.disable_to_s_conversionをdeprecateにしています。


Remove deprecated override of ActiveSupport::TimeWithZone.name

Active Support、railtiesの修正です。

deprecatedになっていたActiveSupport::TimeWithZone.nameのoverride処理を削除しています。合わせて、この挙動を変更する為のconfig.active_support.remove_deprecated_time_with_zone_nameをdeprecateにしています。


Remove deprecated active_support/core_ext/uri file

deprecatedになっていたactive_support/core_ext/uri fileを削除しています。


Remove deprecated active_support/core_ext/range/include_time_with_zone file

deprecatedになっていたactive_support/core_ext/range/include_time_with_zone fileを削除しています。


Remove implicit conversion of objects into String by ActiveSupport::SafeBuffer

activesupport/lib/active_support/core_ext/string/output_safety.rbの修正です。

deprecatedになっていたobjectをActiveSupport::SafeBufferを使用してStringに変換する処理を削除しています。


Remove deprecated children and parent_of? on ActiveSupport::Notifications::Event

activesupport/lib/active_support/notifications/instrumenter.rbの修正です。

deprecatedになっていたActiveSupport::Notifications::Event#childrenActiveSupport::Notifications::Event#parent_of?を削除しています。


Remove deprecated support to generate incorrect RFC 4122 UUIDs

Active Support、railtiesの修正です。

deprecatedになっていた不正なRFC 4122 UUIDs を作成する為の挙動を削除しています。合わせて、この挙動を変更する為のconfig.active_support.use_rfc4122_namespaced_uuidsをdeprecateにしています。


Remove deprecated constant ActionView::Path

actionview/lib/action_view/template/resolver.rbの修正です。

deprecatedになっていたActionView::Pathを削除しています。


Remove deprecated support to instance variables as locals to partials

actionview/lib/action_view/template.rbの修正です。

deprecatedになっていたpartialsにインスタンス変数をlocalsとして渡す挙動を削除しています。


Remove deprecated invalid default content types in Active Storage configurations

Active Storageの修正です。

deprecatedになっていたActive Storageのcontent typeに不正な値を指定できるようにする為の挙動を削除しています。


Remove deprecated ActiveStorage::Current#host and ActiveStorage::Current#host= methods

activestorage/app/models/active_storage/current.rbの修正です。

deprecatedになっていたActiveStorage::Current#host及びActiveStorage::Current#host=を削除しています。


Remove deprecated behavior when assigning to a collection of attachments

Active Storage、Active Supportの修正です。

deprecatedになっていたattachmentのcollectionにattachmentを追加する為の挙動を削除しています。


Remove deprecated purge and purge_later methods from the attachments association

activestorage/lib/active_storage/attached/model.rbの修正です。

deprecatedになっていたattachment associationのpurgepurge_laterメソッドを削除しています。


Merge pull request #47556 from codez/failsafe_delayed_job_name

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

jobのjob_classに不正な値(削除されてしまったりしてすでに存在しないクラス)が指定された場合に、ログの出力自体がエラーになってしまっていたのを修正しています。


Update Rails welcome image in guides

guides/assets/images/getting_started/rails_welcome.pngの修正です。

guideで表示されるwelcomeページのimageを最新の内容に更新しています。


Fix markdown format and typo

activestorage/test/models/variant_test.rbactivesupport/CHANGELOG.mdの修正です。

テスト名のタイポ、及び、CHANGELOG内のタイポを修正しています。


Clarify AS::Representations::RedirectController processes files [skip ci]

rails guideのActive Storage Overviewの修正です。

Lazy vs Immediate Loadingの項にある、ActiveStorage::Representations::RedirectControllerが行うファイルアップロード時の挙動について詳細な説明を追加しています。


Merge pull request #47563 from p8/activerecord/improve-attributes-methods-test

activerecord/test/cases/attribute_methods_test.rbの修正です。

read_attributeに存在しないattributeを指定した場合の挙動のassertを追加しています。


Merge pull request #45642 from kbrock/quoted_columns

activerecord/lib/arel/nodes/homogeneous_in.rbactiverecord/lib/arel/visitors/to_sql.rbの修正です。

HomogeneousInで手動でSQLを生成していたのを、他の処理と同様にToSql#Attributedelegateするよう修正しています。


Merge pull request #47565 from Shopify/fix-nullifying-association-with-composite-query-constraints

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

composite query constraintsを使用しているhas_many associationに対するnullifが行えるよう修正しています。


Merge pull request #47566 from Shopify/do-not-use-query-constraints-if-association-doesnt-explicitly-specifies-it

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

compute_primary_keyメソッドでassociationで明示的にquery_constraintsの指定がある場合のみquery_constraintsを使用するよう修正しています。