blob: 7b5c4b87e3ea5932344d81981ca8e7b69f6afdd0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
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
224
225
226
|
**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](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)
### Default Content Security Policy
[Pull Request](https://github.com/rails/rails/pull/31162)
Incompatibilities
-----------------
ToDo
Railties
--------
Please refer to the [Changelog][railties] for detailed changes.
### Deprecations
* 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))
### Notable changes
ToDo
Action Cable
-----------
Please refer to the [Changelog][action-cable] for detailed changes.
### Removals
* Removed deprecated evented redis adapter.
([Commit](https://github.com/rails/rails/commit/48766e32d31))
### Notable changes
* 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))
Action Pack
-----------
Please refer to the [Changelog][action-pack] for detailed changes.
### Removals
* Removed deprecated `ActionController::ParamsParser::ParseError`.
([Commit](https://github.com/rails/rails/commit/e16c765ac6d))
### Deprecations
* Deprecated `#success?`, `#missing?` and `#error?` aliases of
`ActionDispatch::TestResponse`.
([Pull Request](https://github.com/rails/rails/pull/30104))
### Notable changes
ToDo
Action View
-------------
Please refer to the [Changelog][action-view] for detailed changes.
### Removals
* Removed deprecated Erubis ERB handler.
([Commit](https://github.com/rails/rails/commit/7de7f12fd14))
### Deprecations
* Deprecated `image_alt` helper which used to add default alt text to
the images generated by `image_tag`.
([Pull Request](https://github.com/rails/rails/pull/30213))
### 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
|