2023/03/03分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Deprecate
config.action_dispatch.return_only_request_media_type_on_content_type
. - Remove deprecated behavior on
Request#content_type
- Remove deprecated ability to assign a single value to
config.action_dispatch.trusted_proxies
- Remove deprecated
poltergeist
andwebkit
(capybara-webkit) driver registration for system testing
- Remove deprecated
ActiveRecord::Base
config accessors - Remove deprecated
config.active_record.partial_writes
- Remove deprecated
Tasks::DatabaseTasks.schema_file_type
- Remove deprecated override of
Enumerable#sum
- Remove deprecated
ActiveSupport::PerThreadRegistry
- Deprecate
config.active_support.disable_to_s_conversion
. - Remove deprecated option to passing a format to
#to_s
inArray
,Range
,Date
,DateTime
,Time
,BigDecimal
,Float
and,Integer
. - Deprecate
config.active_support.remove_deprecated_time_with_zone_name
. - Remove deprecated override of
ActiveSupport::TimeWithZone.name
. - Remove deprecated
active_support/core_ext/range/include_time_with_zone
file. - Remove implicit conversion of objects into
String
byActiveSupport::SafeBuffer
. - Remove deprecated
children
andparent_of?
on ActiveSupport::Notifications::Event. - Deprecate
config.active_support.use_rfc4122_namespaced_uuids
. - Remove deprecated support to generate incorrect RFC 4122 UUIDs when providing a namespace ID that is not one of the constants defined on
Digest::UUID
.
- Remove deprecated constant
ActionView::Path
- Remove deprecated support to instance variables as locals to partials.
activestorage/CHANGELOG.md
- Remove deprecated invalid default content types in Active Storage configurations.
- Remove deprecated
ActiveStorage::Current#host
andActiveStorage::Current#host=
methods
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のpoltergeist
とwebkit
のサポートを削除しています。
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#children
とActiveSupport::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のpurge
、purge_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を最新の内容に更新しています。
activestorage/test/models/variant_test.rb
、
activesupport/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.rb
、
activerecord/lib/arel/visitors/to_sql.rb
の修正です。
HomogeneousIn
で手動でSQLを生成していたのを、他の処理と同様にToSql#Attribute
にdelegateするよう修正しています。
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が行えるよう修正しています。
activerecord/lib/active_record/autosave_association.rb
の修正です。
compute_primary_key
メソッドでassociationで明示的にquery_constraints
の指定がある場合のみquery_constraints
を使用するよう修正しています。