rails/guides/source/5_2_release_notes.md

5.3 KiB

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

Ruby on Rails 5.2 Release Notes

Highlights in Rails 5.2:

  • Active Storage
  • Redis Cache Store
  • HTTP/2 Early hints support
  • Credentials
  • Default Content Security Policy

These release notes cover only the major changes. To learn about various bug fixes and changes, please refer to the change logs or check out the list of commits in the main Rails repository on GitHub.


Upgrading to Rails 5.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 5.1 in case you haven't and make sure your application still runs as expected before attempting an update to Rails 5.2.

Major Features

Active Storage

README

Redis Cache Store

Pull Request

HTTP/2 Early hints support

Pull Request

Credentials

Pull Request

Default Content Security Policy

Pull Request

Incompatibilities

ToDo

Railties

Please refer to the Changelog for detailed changes.

Deprecations

  • Deprecate capify! method in generators and templates. (Pull Request)

  • Deprecated passing the environment's name as a regular argument to the rails dbconsole and rails console commands. (Pull Request)

  • Deprecated using subclass of Rails::Application to start the Rails server. (Pull Request)

  • Deprecated after_bundle callback in Rails plugin templates. (Pull Request)

Notable changes

ToDo

Action Cable

Please refer to the Changelog for detailed changes.

Removals

  • Removed deprecated evented redis adapter. (Commit)

Notable changes

  • Added support for host, port, db and password options in cable.yml (Pull Request)

  • Added support for compatibility with redis-rb gem for 4.0 version. (Pull Request)

Action Pack

Please refer to the Changelog for detailed changes.

Removals

  • Removed deprecated ActionController::ParamsParser::ParseError. (Commit)

Deprecations

  • Deprecated #success?, #missing? and #error? aliases of ActionDispatch::TestResponse. (Pull Request)

Notable changes

ToDo

Action View

Please refer to the Changelog for detailed changes.

Removals

  • Removed deprecated Erubis ERB handler. (Commit)

Deprecations

  • Deprecated image_alt helper which used to add default alt text to the image text. (Pull Request)

Notable changes

ToDo

Action Mailer

Please refer to the Changelog for detailed changes.

Notable changes

ToDo

Active Record

Please refer to the Changelog for detailed changes.

ToDo

Deprecations

ToDo

Notable changes

ToDo

Active Model

Please refer to the Changelog for detailed changes.

Removals

ToDo

Notable changes

ToDo

Active Support

Please refer to the Changelog for detailed changes.

Removals

ToDo

Deprecations

ToDo

Notable changes

ToDo

Active Job

Please refer to the Changelog for detailed changes.

Removals

ToDo

Notable changes

ToDo

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.