5_2_release_notes.md 5.0 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
**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
12
* Default Content Security Policy
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51

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](https://github.com/rails/rails/commits/5-2-stable) 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](https://github.com/rails/rails/blob/d3893ec38ec61282c2598b01a298124356d6b35a/activestorage/README.md)

### Redis Cache Store

[Pull Request](https://github.com/rails/rails/pull/31134)


### HTTP/2 Early hints support

[Pull Request](https://github.com/rails/rails/pull/30744)


### Credentials

[Pull Request](https://github.com/rails/rails/pull/30067)


52 53 54 55
### Default Content Security Policy

[Pull Request](https://github.com/rails/rails/pull/31162)

56 57 58 59 60 61 62 63 64 65
Incompatibilities
-----------------

ToDo

Railties
--------

Please refer to the [Changelog][railties] for detailed changes.

66
### Deprecations
67

68 69 70 71 72 73 74 75 76 77 78 79
*   Deprecate `capify!` method in generators and templates.
    ([Pull Request](https://github.com/rails/rails/pull/29493))

*   Deprecated passing the environment's name as a regular argument to the
    `rails dbconsole` and `rails console` commands.
    ([Pull Request](https://github.com/rails/rails/pull/29358))

*   Deprecated using subclass of `Rails::Application` to start the Rails server.
    ([Pull Request](https://github.com/rails/rails/pull/30127))

*   Deprecated `after_bundle` callback in Rails plugin templates.
    ([Pull Request](https://github.com/rails/rails/pull/29446))
80 81 82 83 84 85 86 87 88 89

### Notable changes

ToDo

Action Cable
-----------

Please refer to the [Changelog][action-cable] for detailed changes.

90 91 92 93 94
### Removals

*   Removed deprecated evented redis adapter.
    ([Commit](https://github.com/rails/rails/commit/48766e32d31))

95 96
### Notable changes

97 98 99 100 101
*   Added support for `host`, `port`, `db` and `password` options in cable.yml
    ([Pull Request](https://github.com/rails/rails/pull/29528))

*   Added support for compatibility with redis-rb gem for 4.0 version.
    ([Pull Request](https://github.com/rails/rails/pull/30748))
102 103 104 105 106 107 108 109

Action Pack
-----------

Please refer to the [Changelog][action-pack] for detailed changes.

### Removals

110 111
*   Removed deprecated `ActionController::ParamsParser::ParseError`.
    ([Commit](https://github.com/rails/rails/commit/e16c765ac6d))
112 113 114

### Deprecations

115 116 117
*   Deprecated `#success?`, `#missing?` and `#error?` aliases of
    `ActionDispatch::TestResponse`.
    ([Pull Request](https://github.com/rails/rails/pull/30104))
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223

### Notable changes

ToDo

Action View
-------------

Please refer to the [Changelog][action-view] for detailed changes.

### Removals

ToDo

### Deprecations

ToDo

### Notable changes

ToDo

Action Mailer
-------------

Please refer to the [Changelog][action-mailer] for detailed changes.

### Notable changes

ToDo

Active Record
-------------

Please refer to the [Changelog][active-record] for detailed changes.

ToDo

### Deprecations

ToDo

### Notable changes

ToDo

Active Model
------------

Please refer to the [Changelog][active-model] for detailed changes.

### Removals

ToDo

### Notable changes

ToDo

Active Support
--------------

Please refer to the [Changelog][active-support] for detailed changes.

### Removals

ToDo

### Deprecations

ToDo

### Notable changes

ToDo

Active Job
-----------

Please refer to the [Changelog][active-job] for detailed changes.

### Removals

ToDo

### Notable changes

ToDo

Credits
-------

See the
[full list of contributors to Rails](http://contributors.rubyonrails.org/) for
the many people who spent many hours making Rails, the stable and robust
framework it is. Kudos to all of them.

[railties]:       https://github.com/rails/rails/blob/5-2-stable/railties/CHANGELOG.md
[action-pack]:    https://github.com/rails/rails/blob/5-2-stable/actionpack/CHANGELOG.md
[action-view]:    https://github.com/rails/rails/blob/5-2-stable/actionview/CHANGELOG.md
[action-mailer]:  https://github.com/rails/rails/blob/5-2-stable/actionmailer/CHANGELOG.md
[action-cable]:   https://github.com/rails/rails/blob/5-2-stable/actioncable/CHANGELOG.md
[active-record]:  https://github.com/rails/rails/blob/5-2-stable/activerecord/CHANGELOG.md
[active-model]:   https://github.com/rails/rails/blob/5-2-stable/activemodel/CHANGELOG.md
[active-support]: https://github.com/rails/rails/blob/5-2-stable/activesupport/CHANGELOG.md
[active-job]:     https://github.com/rails/rails/blob/5-2-stable/activejob/CHANGELOG.md