actionview 6.0.3.2 → 6.1.0

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