rails/guides/source/7_2_release_notes.md
2024-01-03 19:10:52 +05:30

5.1 KiB

DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON https://guides.rubyonrails.org.

Ruby on Rails 7.2 Release Notes

Highlights in Rails 7.2:


Upgrading to Rails 7.2

If you're upgrading an existing application, it's a great idea to have good test coverage before going in. You should also first upgrade to Rails 7.1 in case you haven't and make sure your application still runs as expected before attempting an update to Rails 7.2. A list of things to watch out for when upgrading is available in the Upgrading Ruby on Rails guide.

Major Features

Railties

Please refer to the Changelog for detailed changes.

Removals

Deprecations

Notable changes

Action Cable

Please refer to the Changelog for detailed changes.

Removals

Deprecations

Notable changes

Action Pack

Please refer to the Changelog for detailed changes.

Removals

  • Remove deprecated constant ActionDispatch::IllegalStateError.

  • Remove deprecated constant AbstractController::Helpers::MissingHelperError.

  • Remove deprecated comparison between ActionController::Parameters and Hash.

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

  • Remove deprecated speaker, vibrate, and vr permissions policy directives.

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

Deprecations

  • Deprecate Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality.

Notable changes

Action View

Please refer to the Changelog for detailed changes.

Removals

  • Remove deprecated @rails/ujs in favor of Turbo.

Deprecations

  • Deprecate passing content to void elements when using tag.br type tag builders.

Notable changes

Action Mailer

Please refer to the Changelog for detailed changes.

Removals

  • Remove deprecated config.action_mailer.preview_path.

  • Remove deprecated params via :args for assert_enqueued_email_with.

Deprecations

Notable changes

Active Record

Please refer to the Changelog for detailed changes.

Removals

Deprecations

Notable changes

Active Storage

Please refer to the Changelog for detailed changes.

Removals

Deprecations

Notable changes

Active Model

Please refer to the Changelog for detailed changes.

Removals

Deprecations

Notable changes

Active Support

Please refer to the Changelog for detailed changes.

Removals

Deprecations

Notable changes

Active Job

Please refer to the Changelog for detailed changes.

Removals

  • Remove deprecated primitive serializer for BigDecimal arguments.

  • Remove deprecated support to set numeric values to scheduled_at attribute.

  • Remove deprecated :exponentially_longer value for the :wait in retry_on.

Deprecations

  • Deprecate Rails.application.config.active_job.use_big_decimal_serialize.

Notable changes

Action Text

Please refer to the Changelog for detailed changes.

Removals

Deprecations

Notable changes

Action Mailbox

Please refer to the Changelog for detailed changes.

Removals

Deprecations

Notable changes

Ruby on Rails Guides

Please refer to the Changelog for detailed changes.

Notable changes

Credits

See the full list of contributors to Rails for the many people who spent many hours making Rails, the stable and robust framework it is. Kudos to all of them.