rails/guides/source/7_0_release_notes.md
2021-11-17 21:51:19 +00:00

5.1 KiB

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

Ruby on Rails 7.0 Release Notes

Highlights in Rails 7.0:

  • Ruby 2.7.0+ required, Ruby 3.0+ preferred

Upgrading to Rails 7.0

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 6.1 in case you haven't and make sure your application still runs as expected before attempting an update to Rails 7.0. 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 ActionDispatch::Response.return_only_media_type_on_content_type.

  • Remove deprecated Rails.config.action_dispatch.hosts_response_app.

  • Remove deprecated ActionDispatch::SystemTestCase#host!.

  • Remove deprecated support to passing a path to fixture_file_upload relative to fixture_path.

Deprecations

Notable changes

Action View

Please refer to the Changelog for detailed changes.

Removals

  • Remove deprecated Rails.config.action_view.raise_on_missing_translations.

Deprecations

Notable changes

Action Mailer

Please refer to the Changelog for detailed changes.

Removals

  • Remove deprecated ActionMailer::DeliveryJob and ActionMailer::Parameterized::DeliveryJob in favor of ActionMailer::MailDeliveryJob.

Deprecations

Notable changes

Active Record

Please refer to the Changelog for detailed changes.

Removals

  • Remove deprecated database kwarg from connected_to.

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

  • Remove deprecated enumeration of ActiveModel::Errors instances as a Hash.

  • Remove deprecated ActiveModel::Errors#to_h.

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

  • Removed deprecated behavior that was not halting after_enqueue/after_perform callbacks when a previous callback was halted with throw :abort.

Deprecations

  • Deprecated Rails.config.active_job.skip_after_callbacks_if_terminated.

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

  • Removed deprecated Rails.application.credentials.action_mailbox.mailgun_api_key.

  • Removed deprecated environment variable MAILGUN_INGRESS_API_KEY.

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.