actionview 6.0.3.1 → 6.1.0.rc2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionview might be problematic. Click here for more details.

Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +160 -209
  3. data/MIT-LICENSE +1 -1
  4. data/lib/action_view.rb +4 -1
  5. data/lib/action_view/base.rb +21 -52
  6. data/lib/action_view/cache_expiry.rb +1 -2
  7. data/lib/action_view/context.rb +0 -1
  8. data/lib/action_view/dependency_tracker.rb +10 -4
  9. data/lib/action_view/digestor.rb +3 -2
  10. data/lib/action_view/gem_version.rb +3 -3
  11. data/lib/action_view/helpers/asset_tag_helper.rb +40 -15
  12. data/lib/action_view/helpers/asset_url_helper.rb +6 -4
  13. data/lib/action_view/helpers/atom_feed_helper.rb +2 -1
  14. data/lib/action_view/helpers/cache_helper.rb +10 -16
  15. data/lib/action_view/helpers/date_helper.rb +4 -4
  16. data/lib/action_view/helpers/form_helper.rb +59 -17
  17. data/lib/action_view/helpers/form_options_helper.rb +7 -16
  18. data/lib/action_view/helpers/form_tag_helper.rb +2 -1
  19. data/lib/action_view/helpers/javascript_helper.rb +3 -3
  20. data/lib/action_view/helpers/number_helper.rb +6 -6
  21. data/lib/action_view/helpers/rendering_helper.rb +11 -3
  22. data/lib/action_view/helpers/tag_helper.rb +92 -17
  23. data/lib/action_view/helpers/tags/base.rb +9 -5
  24. data/lib/action_view/helpers/tags/date_field.rb +1 -1
  25. data/lib/action_view/helpers/tags/date_select.rb +2 -2
  26. data/lib/action_view/helpers/tags/datetime_local_field.rb +1 -1
  27. data/lib/action_view/helpers/tags/label.rb +4 -0
  28. data/lib/action_view/helpers/tags/month_field.rb +1 -1
  29. data/lib/action_view/helpers/tags/select.rb +1 -1
  30. data/lib/action_view/helpers/tags/time_field.rb +1 -1
  31. data/lib/action_view/helpers/tags/week_field.rb +1 -1
  32. data/lib/action_view/helpers/text_helper.rb +1 -1
  33. data/lib/action_view/helpers/translation_helper.rb +94 -49
  34. data/lib/action_view/helpers/url_helper.rb +107 -13
  35. data/lib/action_view/layouts.rb +3 -2
  36. data/lib/action_view/log_subscriber.rb +26 -10
  37. data/lib/action_view/lookup_context.rb +3 -18
  38. data/lib/action_view/path_set.rb +0 -3
  39. data/lib/action_view/railtie.rb +35 -46
  40. data/lib/action_view/renderer/abstract_renderer.rb +93 -14
  41. data/lib/action_view/renderer/collection_renderer.rb +192 -0
  42. data/lib/action_view/renderer/object_renderer.rb +34 -0
  43. data/lib/action_view/renderer/partial_renderer.rb +20 -282
  44. data/lib/action_view/renderer/partial_renderer/collection_caching.rb +25 -26
  45. data/lib/action_view/renderer/renderer.rb +44 -1
  46. data/lib/action_view/renderer/streaming_template_renderer.rb +5 -1
  47. data/lib/action_view/renderer/template_renderer.rb +15 -12
  48. data/lib/action_view/rendering.rb +3 -1
  49. data/lib/action_view/routing_url_for.rb +1 -1
  50. data/lib/action_view/template.rb +9 -49
  51. data/lib/action_view/template/handlers.rb +0 -26
  52. data/lib/action_view/template/handlers/erb.rb +10 -14
  53. data/lib/action_view/template/handlers/erb/erubi.rb +9 -7
  54. data/lib/action_view/template/html.rb +1 -11
  55. data/lib/action_view/template/raw_file.rb +0 -3
  56. data/lib/action_view/template/renderable.rb +24 -0
  57. data/lib/action_view/template/resolver.rb +82 -40
  58. data/lib/action_view/template/text.rb +0 -3
  59. data/lib/action_view/test_case.rb +18 -25
  60. data/lib/action_view/testing/resolvers.rb +10 -31
  61. data/lib/action_view/unbound_template.rb +3 -3
  62. data/lib/action_view/view_paths.rb +34 -36
  63. metadata +17 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d9847672c3b4327d0549b658ed0d559c40b897ac1cf19ec15485871239e83cf
4
- data.tar.gz: c90e173c0b414a63fb814b34a9d08879a42493d66e2fa42083efa8e883d06802
3
+ metadata.gz: 562e430d06a88bfaa7ebf87316f486b7ed0031ac41feec1e6e4eb0c69578216c
4
+ data.tar.gz: a19b3a1d9e524cdc1a9714f94891ff8b6f5eb296c14f2e4e662c2b232fecba24
5
5
  SHA512:
6
- metadata.gz: a9060b8101caebedc4f0d93b3f8490fd622a6d8fc5993be0680cabf710fde6f94d0a35964a338f6ecec2b26b9747a840d42ec3e931b26e687f52fda175446c69
7
- data.tar.gz: fc2b9d1e38e1051c8d2045dadac317046a70570f5b543e51a287ba2553be8d6d0740e6d69f0038a66f4a85d875c2081b999fef8b26e91da569c5b05f4b080ef3
6
+ metadata.gz: afde04e25e22d1b1dc999322969b96b52b361823dafc75f5c257a001704bd4a8be0d16c6fdf501c2888aeaa87da11bbebeb9b7daf917f719fb565bfa9646479d
7
+ data.tar.gz: 98fc45cbfce87e37456f5e3eacf7c53b7d3fb89cc05b44d335b7202128fe444e3a17ce69bdc3f0de0aa10bc6e73dbc56e5241694a895f5fbac635292adde4aae
@@ -1,323 +1,274 @@
1
- ## Rails 6.0.3.1 (May 18, 2020) ##
1
+ ## Rails 6.1.0.rc2 (December 01, 2020) ##
2
2
 
3
- * [CVE-2020-8167] Check that request is same-origin prior to including CSRF token in XHRs
3
+ * Change form_with to generate non-remote forms by default.
4
4
 
5
- ## Rails 6.0.3 (May 06, 2020) ##
5
+ `form_with` would generate a remote form by default. This would confuse
6
+ users because they were forced to handle remote requests.
6
7
 
7
- * annotated_source_code returns an empty array so TemplateErrors without a
8
- template in the backtrace are surfaced properly by DebugExceptions.
9
-
10
- *Guilherme Mansur*, *Kasper Timm Hansen*
11
-
12
- * Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
13
-
14
- *Guilherme Mansur*, *Gannon McGibbon*
15
-
16
-
17
- ## Rails 6.0.2.2 (March 19, 2020) ##
18
-
19
- * Fix possible XSS vector in escape_javascript helper
20
-
21
- CVE-2020-5267
22
-
23
- *Aaron Patterson*
24
-
25
-
26
- ## Rails 6.0.2.1 (December 18, 2019) ##
27
-
28
- * No changes.
29
-
30
-
31
- ## Rails 6.0.2 (December 13, 2019) ##
32
-
33
- * No changes.
8
+ All new 6.1 applications will generate non-remote forms by default.
9
+ When upgrading a 6.0 application you can enable remote forms by default by
10
+ setting `config.action_view.form_with_generates_remote_forms` to `true`.
34
11
 
12
+ *Petrik de Heus*
35
13
 
36
- ## Rails 6.0.1 (November 5, 2019) ##
37
14
 
38
- * UJS avoids `Element.closest()` for IE 9 compatibility.
15
+ ## Rails 6.1.0.rc1 (November 02, 2020) ##
39
16
 
40
- *George Claghorn*
17
+ * Yield translated strings to calls of `ActionView::FormBuilder#button`
18
+ when a block is given.
41
19
 
20
+ *Sean Doyle*
42
21
 
43
- ## Rails 6.0.0 (August 16, 2019) ##
44
-
45
- * ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
46
-
47
- *Juanito Fatas*
48
-
49
-
50
- ## Rails 6.0.0.rc2 (July 22, 2019) ##
51
-
52
- * Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
53
-
54
- *Younes SERRAJ*
22
+ * Alias `ActionView::Helpers::Tags::Label::LabelBuilder#translation` to
23
+ `#to_s` so that `form.label` calls can yield that value to their blocks.
55
24
 
25
+ *Sean Doyle*
56
26
 
57
- ## Rails 6.0.0.rc1 (April 24, 2019) ##
27
+ * Rename the new `TagHelper#class_names` method to `TagHelper#token_list`,
28
+ and make the original available as an alias.
58
29
 
59
- * Fix partial caching skips same item issue
30
+ token_list("foo", "foo bar")
31
+ # => "foo bar"
60
32
 
61
- If we render cached collection partials with repeated items, those repeated items
62
- will get skipped. For example, if you have 5 identical items in your collection, Rails
63
- only renders the first one when `cached` is set to true. But it should render all
64
- 5 items instead.
33
+ *Sean Doyle*
65
34
 
66
- Fixes #35114.
35
+ * ARIA Array and Hash attributes are treated as space separated `DOMTokenList`
36
+ values. This is useful when declaring lists of label text identifiers in
37
+ `aria-labelledby` or `aria-describedby`.
67
38
 
68
- *Stan Lo*
69
-
70
- * Only clear ActionView cache in development on file changes
39
+ tag.input type: 'checkbox', name: 'published', aria: {
40
+ invalid: @post.errors[:published].any?,
41
+ labelledby: ['published_context', 'published_label'],
42
+ describedby: { published_errors: @post.errors[:published].any? }
43
+ }
44
+ #=> <input
45
+ type="checkbox" name="published" aria-invalid="true"
46
+ aria-labelledby="published_context published_label"
47
+ aria-describedby="published_errors"
48
+ >
71
49
 
72
- To speed up development mode, view caches are only cleared when files in
73
- the view paths have changed. Applications which have implemented custom
74
- `ActionView::Resolver` subclasses may need to add their own cache clearing.
50
+ *Sean Doyle*
75
51
 
76
- *John Hawthorn*
52
+ * Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`.
77
53
 
78
- * Fix `ActionView::FixtureResolver` so that it handles template variants correctly.
54
+ *Rafael Mendonça França*
79
55
 
80
- *Edward Rudd*
56
+ * Remove deprecated `find_all_anywhere` from `ActionView::Resolver`.
81
57
 
82
- * `ActionView::TemplateRender.render(file: )` now renders the file directly,
83
- without using any handlers, using the new `Template::RawFile` class.
58
+ *Rafael Mendonça França*
84
59
 
85
- *John Hawthorn*, *Cliff Pruitt*
60
+ * Remove deprecated `formats` from `ActionView::Template::HTML`.
86
61
 
62
+ *Rafael Mendonça França*
87
63
 
88
- ## Rails 6.0.0.beta3 (March 11, 2019) ##
64
+ * Remove deprecated `formats` from `ActionView::Template::RawFile`.
89
65
 
90
- * Only accept formats from registered mime types
66
+ *Rafael Mendonça França*
91
67
 
92
- A lack of filtering on mime types could allow an attacker to read
93
- arbitrary files on the target server or to perform a denial of service
94
- attack.
68
+ * Remove deprecated `formats` from `ActionView::Template::Text`.
95
69
 
96
- Fixes CVE-2019-5418
97
- Fixes CVE-2019-5419
70
+ *Rafael Mendonça França*
98
71
 
99
- *John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
72
+ * Remove deprecated `find_file` from `ActionView::PathSet`.
100
73
 
74
+ *Rafael Mendonça França*
101
75
 
102
- ## Rails 6.0.0.beta2 (February 25, 2019) ##
76
+ * Remove deprecated `rendered_format` from `ActionView::LookupContext`.
103
77
 
104
- * `ActionView::Template.finalize_compiled_template_methods` is deprecated with
105
- no replacement.
78
+ *Rafael Mendonça França*
106
79
 
107
- *tenderlove*
80
+ * Remove deprecated `find_file` from `ActionView::ViewPaths`.
108
81
 
109
- * `config.action_view.finalize_compiled_template_methods` is deprecated with
110
- no replacement.
82
+ *Rafael Mendonça França*
111
83
 
112
- *tenderlove*
84
+ * Require that `ActionView::Base` subclasses implement `#compiled_method_container`.
113
85
 
114
- * Ensure unique DOM IDs for collection inputs with float values.
86
+ *Rafael Mendonça França*
115
87
 
116
- Fixes #34974.
88
+ * Remove deprecated support to pass an object that is not a `ActionView::LookupContext` as the first argument
89
+ in `ActionView::Base#initialize`.
117
90
 
118
- *Mark Edmondson*
91
+ *Rafael Mendonça França*
119
92
 
120
- * Single arity template handlers are deprecated. Template handlers must
121
- now accept two parameters, the view object and the source for the view object.
93
+ * Remove deprecated `format` argument `ActionView::Base#initialize`.
122
94
 
123
- *tenderlove*
95
+ *Rafael Mendonça França*
124
96
 
97
+ * Remove deprecated `ActionView::Template#refresh`.
125
98
 
126
- ## Rails 6.0.0.beta1 (January 18, 2019) ##
99
+ *Rafael Mendonça França*
127
100
 
128
- * [Rename npm package](https://github.com/rails/rails/pull/34905) from
129
- [`rails-ujs`](https://www.npmjs.com/package/rails-ujs) to
130
- [`@rails/ujs`](https://www.npmjs.com/package/@rails/ujs).
101
+ * Remove deprecated `ActionView::Template#original_encoding`.
131
102
 
132
- *Javan Makhmali*
103
+ *Rafael Mendonça França*
133
104
 
134
- * Remove deprecated `image_alt` helper.
105
+ * Remove deprecated `ActionView::Template#variants`.
135
106
 
136
107
  *Rafael Mendonça França*
137
108
 
138
- * Fix the need of `#protect_against_forgery?` method defined in
139
- `ActionView::Base` subclasses. This prevents the use of forms and buttons.
109
+ * Remove deprecated `ActionView::Template#formats`.
140
110
 
141
- *Genadi Samokovarov*
111
+ *Rafael Mendonça França*
142
112
 
143
- * Fix UJS permanently showing disabled text in a[data-remote][data-disable-with] elements within forms.
113
+ * Remove deprecated `ActionView::Template#virtual_path=`.
144
114
 
145
- Fixes #33889.
115
+ *Rafael Mendonça França*
146
116
 
147
- *Wolfgang Hobmaier*
117
+ * Remove deprecated `ActionView::Template#updated_at`.
148
118
 
149
- * Prevent non-primary mouse keys from triggering Rails UJS click handlers.
150
- Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
151
- For example, right-clicking a link such as the one described below (with an underlying ajax request registered on click) should not cause that request to occur.
119
+ *Rafael Mendonça França*
152
120
 
153
- ```
154
- <%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
155
- ```
121
+ * Remove deprecated `updated_at` argument required on `ActionView::Template#initialize`.
156
122
 
157
- Fixes #34541.
123
+ *Rafael Mendonça França*
158
124
 
159
- *Wolfgang Hobmaier*
125
+ * Make `locals` argument required on `ActionView::Template#initialize`.
160
126
 
161
- * Prevent `ActionView::TextHelper#word_wrap` from unexpectedly stripping white space from the _left_ side of lines.
127
+ *Rafael Mendonça França*
162
128
 
163
- For example, given input like this:
129
+ * Remove deprecated `ActionView::Template.finalize_compiled_template_methods`.
164
130
 
165
- ```
166
- This is a paragraph with an initial indent,
167
- followed by additional lines that are not indented,
168
- and finally terminated with a blockquote:
169
- "A pithy saying"
170
- ```
131
+ *Rafael Mendonça França*
171
132
 
172
- Calling `word_wrap` should not trim the indents on the first and last lines.
133
+ * Remove deprecated `config.action_view.finalize_compiled_template_methods`
173
134
 
174
- Fixes #34487.
135
+ *Rafael Mendonça França*
175
136
 
176
- *Lyle Mullican*
137
+ * Remove deprecated support to calling `ActionView::ViewPaths#with_fallback` with a block.
177
138
 
178
- * Add allocations to template rendering instrumentation.
139
+ *Rafael Mendonça França*
179
140
 
180
- Adds the allocations for template and partial rendering to the server output on render.
141
+ * Remove deprecated support to passing absolute paths to `render template:`.
181
142
 
182
- ```
183
- Rendered posts/_form.html.erb (Duration: 7.1ms | Allocations: 6004)
184
- Rendered posts/new.html.erb within layouts/application (Duration: 8.3ms | Allocations: 6654)
185
- Completed 200 OK in 858ms (Views: 848.4ms | ActiveRecord: 0.4ms | Allocations: 1539564)
186
- ```
187
-
188
- *Eileen M. Uchitelle*, *Aaron Patterson*
143
+ *Rafael Mendonça França*
189
144
 
190
- * Respect the `only_path` option passed to `url_for` when the options are passed in as an array
145
+ * Remove deprecated support to passing relative paths to `render file:`.
191
146
 
192
- Fixes #33237.
147
+ *Rafael Mendonça França*
193
148
 
194
- *Joel Ambass*
149
+ * Remove support to template handlers that don't accept two arguments.
195
150
 
196
- * Deprecate calling private model methods from view helpers.
151
+ *Rafael Mendonça França*
197
152
 
198
- For example, in methods like `options_from_collection_for_select`
199
- and `collection_select` it is possible to call private methods from
200
- the objects used.
153
+ * Remove deprecated pattern argument in `ActionView::Template::PathResolver`.
201
154
 
202
- Fixes #33546.
155
+ *Rafael Mendonça França*
203
156
 
204
- *Ana María Martínez Gómez*
157
+ * Remove deprecated support to call private methods from object in some view helpers.
205
158
 
206
- * Fix issue with `button_to`'s `to_form_params`
159
+ *Rafael Mendonça França*
207
160
 
208
- `button_to` was throwing exception when invoked with `params` hash that
209
- contains symbol and string keys. The reason for the exception was that
210
- `to_form_params` was comparing the given symbol and string keys.
161
+ * `ActionView::Helpers::TranslationHelper#translate` accepts a block, yielding
162
+ the translated text and the fully resolved translation key:
211
163
 
212
- The issue is fixed by turning all keys to strings inside
213
- `to_form_params` before comparing them.
164
+ <%= translate(".relative_key") do |translation, resolved_key| %>
165
+ <span title="<%= resolved_key %>"><%= translation %></span>
166
+ <% end %>
214
167
 
215
- *Georgi Georgiev*
168
+ *Sean Doyle*
216
169
 
217
- * Mark arrays of translations as trusted safe by using the `_html` suffix.
170
+ * Ensure cache fragment digests include all relevant template dependencies when
171
+ fragments are contained in a block passed to the render helper. Remove the
172
+ virtual_path keyword arguments found in CacheHelper as they no longer possess
173
+ any function following 1581cab.
218
174
 
219
- Example:
175
+ Fixes #38984.
220
176
 
221
- en:
222
- foo_html:
223
- - "One"
224
- - "<strong>Two</strong>"
225
- - "Three &#128075; &#128578;"
177
+ *Aaron Lipman*
226
178
 
227
- *Juan Broullon*
179
+ * Deprecate `config.action_view.raise_on_missing_translations` in favor of
180
+ `config.i18n.raise_on_missing_translations`.
228
181
 
229
- * Add `year_format` option to date_select tag. This option makes it possible to customize year
230
- names. Lambda should be passed to use this option.
182
+ New generalized configuration option now determines whether an error should be raised
183
+ for missing translations in controllers and views.
231
184
 
232
- Example:
185
+ *fatkodima*
233
186
 
234
- date_select('user_birthday', '', start_year: 1998, end_year: 2000, year_format: ->year { "Heisei #{year - 1988}" })
187
+ * Instrument layout rendering in `TemplateRenderer#render_with_layout` as `render_layout.action_view`,
188
+ and include (when necessary) the layout's virtual path in notification payloads for collection and partial renders.
235
189
 
236
- The HTML produced:
190
+ *Zach Kemp*
237
191
 
238
- <select id="user_birthday__1i" name="user_birthday[(1i)]">
239
- <option value="1998">Heisei 10</option>
240
- <option value="1999">Heisei 11</option>
241
- <option value="2000">Heisei 12</option>
242
- </select>
243
- /* The rest is omitted */
192
+ * `ActionView::Base.annotate_rendered_view_with_filenames` annotates HTML output with template file names.
244
193
 
245
- *Koki Ryu*
194
+ *Joel Hawksley*, *Aaron Patterson*
246
195
 
247
- * Fix JavaScript views rendering does not work with Firefox when using
248
- Content Security Policy.
196
+ * `ActionView::Helpers::TranslationHelper#translate` returns nil when
197
+ passed `default: nil` without a translation matching `I18n#translate`.
249
198
 
250
- Fixes #32577.
199
+ *Stefan Wrobel*
251
200
 
252
- *Yuji Yaginuma*
201
+ * `OptimizedFileSystemResolver` prefers template details in order of locale,
202
+ formats, variants, handlers.
253
203
 
254
- * Add the `nonce: true` option for `javascript_include_tag` helper to
255
- support automatic nonce generation for Content Security Policy.
256
- Works the same way as `javascript_tag nonce: true` does.
204
+ *Iago Pimenta*
257
205
 
258
- *Yaroslav Markin*
206
+ * Added `class_names` helper to create a CSS class value with conditional classes.
259
207
 
260
- * Remove `ActionView::Helpers::RecordTagHelper`.
208
+ *Joel Hawksley*, *Aaron Patterson*
261
209
 
262
- *Yoshiyuki Hirano*
210
+ * Add support for conditional values to TagBuilder.
263
211
 
264
- * Disable `ActionView::Template` finalizers in test environment.
212
+ *Joel Hawksley*
265
213
 
266
- Template finalization can be expensive in large view test suites.
267
- Add a configuration option,
268
- `action_view.finalize_compiled_template_methods`, and turn it off in
269
- the test environment.
214
+ * `ActionView::Helpers::FormOptionsHelper#select` should mark option for `nil` as selected.
270
215
 
271
- *Simon Coffey*
216
+ ```ruby
217
+ @post = Post.new
218
+ @post.category = nil
272
219
 
273
- * Extract the `confirm` call in its own, overridable method in `rails_ujs`.
220
+ # Before
221
+ select("post", "category", none: nil, programming: 1, economics: 2)
222
+ # =>
223
+ # <select name="post[category]" id="post_category">
224
+ # <option value="">none</option>
225
+ # <option value="1">programming</option>
226
+ # <option value="2">economics</option>
227
+ # </select>
274
228
 
275
- Example:
229
+ # After
230
+ select("post", "category", none: nil, programming: 1, economics: 2)
231
+ # =>
232
+ # <select name="post[category]" id="post_category">
233
+ # <option selected="selected" value="">none</option>
234
+ # <option value="1">programming</option>
235
+ # <option value="2">economics</option>
236
+ # </select>
237
+ ```
276
238
 
277
- Rails.confirm = function(message, element) {
278
- return (my_bootstrap_modal_confirm(message));
279
- }
239
+ *bogdanvlviv*
280
240
 
281
- *Mathieu Mahé*
241
+ * Log lines for partial renders and started template renders are now
242
+ emitted at the `DEBUG` level instead of `INFO`.
282
243
 
283
- * Enable select tag helper to mark `prompt` option as `selected` and/or `disabled` for `required`
284
- field.
244
+ Completed template renders are still logged at the `INFO` level.
285
245
 
286
- Example:
246
+ *DHH*
287
247
 
288
- select :post,
289
- :category,
290
- ["lifestyle", "programming", "spiritual"],
291
- { selected: "", disabled: "", prompt: "Choose one" },
292
- { required: true }
248
+ * ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
293
249
 
294
- Placeholder option would be selected and disabled.
250
+ *Juanito Fatas*
295
251
 
296
- The HTML produced:
252
+ * Added `phone_to` helper method to create a link from mobile numbers.
297
253
 
298
- <select required="required" name="post[category]" id="post_category">
299
- <option disabled="disabled" selected="selected" value="">Choose one</option>
300
- <option value="lifestyle">lifestyle</option>
301
- <option value="programming">programming</option>
302
- <option value="spiritual">spiritual</option></select>
254
+ *Pietro Moro*
303
255
 
304
- *Sergey Prikhodko*
256
+ * annotated_source_code returns an empty array so TemplateErrors without a
257
+ template in the backtrace are surfaced properly by DebugExceptions.
305
258
 
306
- * Don't enforce UTF-8 by default.
259
+ *Guilherme Mansur*, *Kasper Timm Hansen*
307
260
 
308
- With the disabling of TLS 1.0 by most major websites, continuing to run
309
- IE8 or lower becomes increasingly difficult so default to not enforcing
310
- UTF-8 encoding as it's not relevant to other browsers.
261
+ * Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
311
262
 
312
- *Andrew White*
263
+ *Guilherme Mansur*, *Gannon McGibbon*
313
264
 
314
- * Change translation key of `submit_tag` from `module_name_class_name` to `module_name/class_name`.
265
+ * `RenderingHelper` supports rendering objects that `respond_to?` `:render_in`.
315
266
 
316
- *Rui Onodera*
267
+ *Joel Hawksley*, *Natasha Umer*, *Aaron Patterson*, *Shawn Allen*, *Emily Plummer*, *Diana Mounter*, *John Hawthorn*, *Nathan Herald*, *Zaid Zawaideh*, *Zach Ahn*
317
268
 
318
- * Rails 6 requires Ruby 2.5.0 or newer.
269
+ * Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
319
270
 
320
- *Jeremy Daer*, *Kasper Timm Hansen*
271
+ *Younes SERRAJ*
321
272
 
322
273
 
323
- Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actionview/CHANGELOG.md) for previous changes.
274
+ Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actionview/CHANGELOG.md) for previous changes.