actionview 6.0.4 → 6.1.0.rc1

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