actionview 6.0.3.3 → 6.1.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +177 -208
- data/MIT-LICENSE +1 -1
- data/lib/action_view.rb +4 -1
- data/lib/action_view/base.rb +19 -50
- data/lib/action_view/cache_expiry.rb +1 -2
- data/lib/action_view/dependency_tracker.rb +10 -4
- data/lib/action_view/digestor.rb +3 -2
- data/lib/action_view/gem_version.rb +3 -3
- data/lib/action_view/helpers/asset_tag_helper.rb +55 -15
- data/lib/action_view/helpers/asset_url_helper.rb +6 -4
- data/lib/action_view/helpers/atom_feed_helper.rb +2 -1
- data/lib/action_view/helpers/cache_helper.rb +10 -16
- data/lib/action_view/helpers/date_helper.rb +4 -4
- data/lib/action_view/helpers/form_helper.rb +66 -30
- data/lib/action_view/helpers/form_options_helper.rb +7 -16
- data/lib/action_view/helpers/form_tag_helper.rb +7 -7
- data/lib/action_view/helpers/javascript_helper.rb +3 -3
- data/lib/action_view/helpers/number_helper.rb +6 -6
- data/lib/action_view/helpers/rendering_helper.rb +11 -3
- data/lib/action_view/helpers/sanitize_helper.rb +2 -2
- data/lib/action_view/helpers/tag_helper.rb +92 -17
- data/lib/action_view/helpers/tags/base.rb +9 -5
- data/lib/action_view/helpers/tags/date_field.rb +1 -1
- data/lib/action_view/helpers/tags/date_select.rb +2 -2
- data/lib/action_view/helpers/tags/datetime_local_field.rb +1 -1
- data/lib/action_view/helpers/tags/label.rb +4 -0
- data/lib/action_view/helpers/tags/month_field.rb +1 -1
- data/lib/action_view/helpers/tags/select.rb +1 -1
- data/lib/action_view/helpers/tags/time_field.rb +1 -1
- data/lib/action_view/helpers/tags/week_field.rb +1 -1
- data/lib/action_view/helpers/text_helper.rb +1 -1
- data/lib/action_view/helpers/translation_helper.rb +87 -51
- data/lib/action_view/helpers/url_helper.rb +107 -13
- data/lib/action_view/layouts.rb +3 -2
- data/lib/action_view/log_subscriber.rb +26 -10
- data/lib/action_view/lookup_context.rb +3 -18
- data/lib/action_view/path_set.rb +0 -3
- data/lib/action_view/railtie.rb +39 -46
- data/lib/action_view/renderer/abstract_renderer.rb +93 -14
- data/lib/action_view/renderer/collection_renderer.rb +196 -0
- data/lib/action_view/renderer/object_renderer.rb +34 -0
- data/lib/action_view/renderer/partial_renderer.rb +20 -282
- data/lib/action_view/renderer/partial_renderer/collection_caching.rb +25 -26
- data/lib/action_view/renderer/renderer.rb +44 -1
- data/lib/action_view/renderer/streaming_template_renderer.rb +5 -1
- data/lib/action_view/renderer/template_renderer.rb +15 -12
- data/lib/action_view/rendering.rb +3 -1
- data/lib/action_view/routing_url_for.rb +1 -1
- data/lib/action_view/template.rb +9 -49
- data/lib/action_view/template/handlers.rb +0 -26
- data/lib/action_view/template/handlers/erb.rb +10 -14
- data/lib/action_view/template/handlers/erb/erubi.rb +9 -7
- data/lib/action_view/template/html.rb +1 -11
- data/lib/action_view/template/raw_file.rb +0 -3
- data/lib/action_view/template/renderable.rb +24 -0
- data/lib/action_view/template/resolver.rb +82 -40
- data/lib/action_view/template/text.rb +0 -3
- data/lib/action_view/test_case.rb +18 -25
- data/lib/action_view/testing/resolvers.rb +10 -31
- data/lib/action_view/unbound_template.rb +3 -3
- data/lib/action_view/view_paths.rb +34 -36
- metadata +18 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a164a5f7ce09e84dfab86b45a2df631dc782f50fc22c0cbb92f967c95808de63
|
4
|
+
data.tar.gz: 9dd5e8614c436054ebb785df67171b16deb22bb8be3518d57ee8486613919d86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3502d7dd7b2407ce4634afadcd61b2d654f248d91bf85d9f43bd6b1ad150fdd84a45b6f009a04d899be293d123be503a7e497b761c10a576bea6c9248140f599
|
7
|
+
data.tar.gz: 3b0695d10e6939424bf14a8cbcea85f6628de02d0a4de37266213883604be8a95daf65eb435cf32260dae4d8b8ad562af7c37a3b426a2589fd305056ec381361
|
data/CHANGELOG.md
CHANGED
@@ -1,335 +1,304 @@
|
|
1
|
-
## Rails 6.
|
1
|
+
## Rails 6.1.1 (January 07, 2021) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Fix lazy translation in partial with block.
|
4
4
|
|
5
|
-
*
|
6
|
-
|
7
|
-
|
8
|
-
## Rails 6.0.3.2 (June 17, 2020) ##
|
9
|
-
|
10
|
-
* No changes.
|
11
|
-
|
12
|
-
|
13
|
-
## Rails 6.0.3.1 (May 18, 2020) ##
|
14
|
-
|
15
|
-
* [CVE-2020-8167] Check that request is same-origin prior to including CSRF token in XHRs
|
16
|
-
|
17
|
-
## Rails 6.0.3 (May 06, 2020) ##
|
18
|
-
|
19
|
-
* annotated_source_code returns an empty array so TemplateErrors without a
|
20
|
-
template in the backtrace are surfaced properly by DebugExceptions.
|
21
|
-
|
22
|
-
*Guilherme Mansur*, *Kasper Timm Hansen*
|
23
|
-
|
24
|
-
* Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
|
25
|
-
|
26
|
-
*Guilherme Mansur*, *Gannon McGibbon*
|
27
|
-
|
28
|
-
|
29
|
-
## Rails 6.0.2.2 (March 19, 2020) ##
|
5
|
+
*Marek Kasztelnik*
|
30
6
|
|
31
|
-
*
|
7
|
+
* Avoid extra `SELECT COUNT` queries when rendering Active Record collections.
|
32
8
|
|
33
|
-
|
9
|
+
*aar0nr*
|
34
10
|
|
35
|
-
|
11
|
+
* Link preloading keep integrity hashes in the header.
|
36
12
|
|
13
|
+
*Étienne Barrié*
|
37
14
|
|
38
|
-
|
15
|
+
* Add `config.action_view.preload_links_header` to allow disabling of
|
16
|
+
the `Link` header being added by default when using `stylesheet_link_tag`
|
17
|
+
and `javascript_include_tag`.
|
39
18
|
|
40
|
-
*
|
19
|
+
*Andrew White*
|
41
20
|
|
21
|
+
* The `translate` helper now resolves `default` values when a `nil` key is
|
22
|
+
specified, instead of always returning `nil`.
|
42
23
|
|
43
|
-
|
24
|
+
*Jonathan Hefner*
|
44
25
|
|
45
|
-
* No changes.
|
46
26
|
|
27
|
+
## Rails 6.1.0 (December 09, 2020) ##
|
47
28
|
|
48
|
-
|
29
|
+
* SanitizeHelper.sanitized_allowed_attributes and SanitizeHelper.sanitized_allowed_tags
|
30
|
+
call safe_list_sanitizer's class method
|
49
31
|
|
50
|
-
|
32
|
+
Fixes #39586
|
51
33
|
|
52
|
-
*
|
34
|
+
*Taufiq Muhammadi*
|
53
35
|
|
36
|
+
* Change form_with to generate non-remote forms by default.
|
54
37
|
|
55
|
-
|
38
|
+
`form_with` would generate a remote form by default. This would confuse
|
39
|
+
users because they were forced to handle remote requests.
|
56
40
|
|
57
|
-
|
41
|
+
All new 6.1 applications will generate non-remote forms by default.
|
42
|
+
When upgrading a 6.0 application you can enable remote forms by default by
|
43
|
+
setting `config.action_view.form_with_generates_remote_forms` to `true`.
|
58
44
|
|
59
|
-
*
|
45
|
+
*Petrik de Heus*
|
60
46
|
|
47
|
+
* Yield translated strings to calls of `ActionView::FormBuilder#button`
|
48
|
+
when a block is given.
|
61
49
|
|
62
|
-
|
50
|
+
*Sean Doyle*
|
63
51
|
|
64
|
-
*
|
65
|
-
|
66
|
-
*Younes SERRAJ*
|
52
|
+
* Alias `ActionView::Helpers::Tags::Label::LabelBuilder#translation` to
|
53
|
+
`#to_s` so that `form.label` calls can yield that value to their blocks.
|
67
54
|
|
55
|
+
*Sean Doyle*
|
68
56
|
|
69
|
-
|
57
|
+
* Rename the new `TagHelper#class_names` method to `TagHelper#token_list`,
|
58
|
+
and make the original available as an alias.
|
70
59
|
|
71
|
-
|
60
|
+
token_list("foo", "foo bar")
|
61
|
+
# => "foo bar"
|
72
62
|
|
73
|
-
|
74
|
-
will get skipped. For example, if you have 5 identical items in your collection, Rails
|
75
|
-
only renders the first one when `cached` is set to true. But it should render all
|
76
|
-
5 items instead.
|
63
|
+
*Sean Doyle*
|
77
64
|
|
78
|
-
|
65
|
+
* ARIA Array and Hash attributes are treated as space separated `DOMTokenList`
|
66
|
+
values. This is useful when declaring lists of label text identifiers in
|
67
|
+
`aria-labelledby` or `aria-describedby`.
|
79
68
|
|
80
|
-
|
81
|
-
|
82
|
-
|
69
|
+
tag.input type: 'checkbox', name: 'published', aria: {
|
70
|
+
invalid: @post.errors[:published].any?,
|
71
|
+
labelledby: ['published_context', 'published_label'],
|
72
|
+
describedby: { published_errors: @post.errors[:published].any? }
|
73
|
+
}
|
74
|
+
#=> <input
|
75
|
+
type="checkbox" name="published" aria-invalid="true"
|
76
|
+
aria-labelledby="published_context published_label"
|
77
|
+
aria-describedby="published_errors"
|
78
|
+
>
|
83
79
|
|
84
|
-
|
85
|
-
the view paths have changed. Applications which have implemented custom
|
86
|
-
`ActionView::Resolver` subclasses may need to add their own cache clearing.
|
80
|
+
*Sean Doyle*
|
87
81
|
|
88
|
-
|
82
|
+
* Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`.
|
89
83
|
|
90
|
-
*
|
84
|
+
*Rafael Mendonça França*
|
91
85
|
|
92
|
-
|
86
|
+
* Remove deprecated `find_all_anywhere` from `ActionView::Resolver`.
|
93
87
|
|
94
|
-
*
|
95
|
-
without using any handlers, using the new `Template::RawFile` class.
|
88
|
+
*Rafael Mendonça França*
|
96
89
|
|
97
|
-
|
90
|
+
* Remove deprecated `formats` from `ActionView::Template::HTML`.
|
98
91
|
|
92
|
+
*Rafael Mendonça França*
|
99
93
|
|
100
|
-
|
94
|
+
* Remove deprecated `formats` from `ActionView::Template::RawFile`.
|
101
95
|
|
102
|
-
*
|
96
|
+
*Rafael Mendonça França*
|
103
97
|
|
104
|
-
|
105
|
-
arbitrary files on the target server or to perform a denial of service
|
106
|
-
attack.
|
98
|
+
* Remove deprecated `formats` from `ActionView::Template::Text`.
|
107
99
|
|
108
|
-
|
109
|
-
Fixes CVE-2019-5419
|
100
|
+
*Rafael Mendonça França*
|
110
101
|
|
111
|
-
|
102
|
+
* Remove deprecated `find_file` from `ActionView::PathSet`.
|
112
103
|
|
104
|
+
*Rafael Mendonça França*
|
113
105
|
|
114
|
-
|
106
|
+
* Remove deprecated `rendered_format` from `ActionView::LookupContext`.
|
115
107
|
|
116
|
-
*
|
117
|
-
no replacement.
|
108
|
+
*Rafael Mendonça França*
|
118
109
|
|
119
|
-
|
110
|
+
* Remove deprecated `find_file` from `ActionView::ViewPaths`.
|
120
111
|
|
121
|
-
*
|
122
|
-
no replacement.
|
112
|
+
*Rafael Mendonça França*
|
123
113
|
|
124
|
-
|
114
|
+
* Require that `ActionView::Base` subclasses implement `#compiled_method_container`.
|
125
115
|
|
126
|
-
*
|
116
|
+
*Rafael Mendonça França*
|
127
117
|
|
128
|
-
|
118
|
+
* Remove deprecated support to pass an object that is not a `ActionView::LookupContext` as the first argument
|
119
|
+
in `ActionView::Base#initialize`.
|
129
120
|
|
130
|
-
*
|
121
|
+
*Rafael Mendonça França*
|
131
122
|
|
132
|
-
*
|
133
|
-
now accept two parameters, the view object and the source for the view object.
|
123
|
+
* Remove deprecated `format` argument `ActionView::Base#initialize`.
|
134
124
|
|
135
|
-
*
|
125
|
+
*Rafael Mendonça França*
|
136
126
|
|
127
|
+
* Remove deprecated `ActionView::Template#refresh`.
|
137
128
|
|
138
|
-
|
129
|
+
*Rafael Mendonça França*
|
139
130
|
|
140
|
-
*
|
141
|
-
[`rails-ujs`](https://www.npmjs.com/package/rails-ujs) to
|
142
|
-
[`@rails/ujs`](https://www.npmjs.com/package/@rails/ujs).
|
131
|
+
* Remove deprecated `ActionView::Template#original_encoding`.
|
143
132
|
|
144
|
-
*
|
133
|
+
*Rafael Mendonça França*
|
145
134
|
|
146
|
-
* Remove deprecated `
|
135
|
+
* Remove deprecated `ActionView::Template#variants`.
|
147
136
|
|
148
137
|
*Rafael Mendonça França*
|
149
138
|
|
150
|
-
*
|
151
|
-
`ActionView::Base` subclasses. This prevents the use of forms and buttons.
|
152
|
-
|
153
|
-
*Genadi Samokovarov*
|
139
|
+
* Remove deprecated `ActionView::Template#formats`.
|
154
140
|
|
155
|
-
*
|
141
|
+
*Rafael Mendonça França*
|
156
142
|
|
157
|
-
|
143
|
+
* Remove deprecated `ActionView::Template#virtual_path=`.
|
158
144
|
|
159
|
-
*
|
145
|
+
*Rafael Mendonça França*
|
160
146
|
|
161
|
-
*
|
162
|
-
Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
|
163
|
-
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.
|
147
|
+
* Remove deprecated `ActionView::Template#updated_at`.
|
164
148
|
|
165
|
-
|
166
|
-
<%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
|
167
|
-
```
|
149
|
+
*Rafael Mendonça França*
|
168
150
|
|
169
|
-
|
151
|
+
* Remove deprecated `updated_at` argument required on `ActionView::Template#initialize`.
|
170
152
|
|
171
|
-
*
|
153
|
+
*Rafael Mendonça França*
|
172
154
|
|
173
|
-
*
|
155
|
+
* Make `locals` argument required on `ActionView::Template#initialize`.
|
174
156
|
|
175
|
-
|
157
|
+
*Rafael Mendonça França*
|
176
158
|
|
177
|
-
|
178
|
-
This is a paragraph with an initial indent,
|
179
|
-
followed by additional lines that are not indented,
|
180
|
-
and finally terminated with a blockquote:
|
181
|
-
"A pithy saying"
|
182
|
-
```
|
159
|
+
* Remove deprecated `ActionView::Template.finalize_compiled_template_methods`.
|
183
160
|
|
184
|
-
|
161
|
+
*Rafael Mendonça França*
|
185
162
|
|
186
|
-
|
163
|
+
* Remove deprecated `config.action_view.finalize_compiled_template_methods`
|
187
164
|
|
188
|
-
*
|
165
|
+
*Rafael Mendonça França*
|
189
166
|
|
190
|
-
*
|
167
|
+
* Remove deprecated support to calling `ActionView::ViewPaths#with_fallback` with a block.
|
191
168
|
|
192
|
-
|
169
|
+
*Rafael Mendonça França*
|
193
170
|
|
194
|
-
|
195
|
-
Rendered posts/_form.html.erb (Duration: 7.1ms | Allocations: 6004)
|
196
|
-
Rendered posts/new.html.erb within layouts/application (Duration: 8.3ms | Allocations: 6654)
|
197
|
-
Completed 200 OK in 858ms (Views: 848.4ms | ActiveRecord: 0.4ms | Allocations: 1539564)
|
198
|
-
```
|
171
|
+
* Remove deprecated support to passing absolute paths to `render template:`.
|
199
172
|
|
200
|
-
*
|
173
|
+
*Rafael Mendonça França*
|
201
174
|
|
202
|
-
*
|
175
|
+
* Remove deprecated support to passing relative paths to `render file:`.
|
203
176
|
|
204
|
-
|
177
|
+
*Rafael Mendonça França*
|
205
178
|
|
206
|
-
|
179
|
+
* Remove support to template handlers that don't accept two arguments.
|
207
180
|
|
208
|
-
*
|
181
|
+
*Rafael Mendonça França*
|
209
182
|
|
210
|
-
|
211
|
-
and `collection_select` it is possible to call private methods from
|
212
|
-
the objects used.
|
183
|
+
* Remove deprecated pattern argument in `ActionView::Template::PathResolver`.
|
213
184
|
|
214
|
-
|
185
|
+
*Rafael Mendonça França*
|
215
186
|
|
216
|
-
|
187
|
+
* Remove deprecated support to call private methods from object in some view helpers.
|
217
188
|
|
218
|
-
*
|
189
|
+
*Rafael Mendonça França*
|
219
190
|
|
220
|
-
|
221
|
-
|
222
|
-
`to_form_params` was comparing the given symbol and string keys.
|
191
|
+
* `ActionView::Helpers::TranslationHelper#translate` accepts a block, yielding
|
192
|
+
the translated text and the fully resolved translation key:
|
223
193
|
|
224
|
-
|
225
|
-
|
194
|
+
<%= translate(".relative_key") do |translation, resolved_key| %>
|
195
|
+
<span title="<%= resolved_key %>"><%= translation %></span>
|
196
|
+
<% end %>
|
226
197
|
|
227
|
-
*
|
198
|
+
*Sean Doyle*
|
228
199
|
|
229
|
-
*
|
200
|
+
* Ensure cache fragment digests include all relevant template dependencies when
|
201
|
+
fragments are contained in a block passed to the render helper. Remove the
|
202
|
+
virtual_path keyword arguments found in CacheHelper as they no longer possess
|
203
|
+
any function following 1581cab.
|
230
204
|
|
231
|
-
|
205
|
+
Fixes #38984.
|
232
206
|
|
233
|
-
|
234
|
-
foo_html:
|
235
|
-
- "One"
|
236
|
-
- "<strong>Two</strong>"
|
237
|
-
- "Three 👋 🙂"
|
207
|
+
*Aaron Lipman*
|
238
208
|
|
239
|
-
|
209
|
+
* Deprecate `config.action_view.raise_on_missing_translations` in favor of
|
210
|
+
`config.i18n.raise_on_missing_translations`.
|
240
211
|
|
241
|
-
|
242
|
-
|
212
|
+
New generalized configuration option now determines whether an error should be raised
|
213
|
+
for missing translations in controllers and views.
|
243
214
|
|
244
|
-
|
215
|
+
*fatkodima*
|
245
216
|
|
246
|
-
|
217
|
+
* Instrument layout rendering in `TemplateRenderer#render_with_layout` as `render_layout.action_view`,
|
218
|
+
and include (when necessary) the layout's virtual path in notification payloads for collection and partial renders.
|
247
219
|
|
248
|
-
|
220
|
+
*Zach Kemp*
|
249
221
|
|
250
|
-
|
251
|
-
<option value="1998">Heisei 10</option>
|
252
|
-
<option value="1999">Heisei 11</option>
|
253
|
-
<option value="2000">Heisei 12</option>
|
254
|
-
</select>
|
255
|
-
/* The rest is omitted */
|
222
|
+
* `ActionView::Base.annotate_rendered_view_with_filenames` annotates HTML output with template file names.
|
256
223
|
|
257
|
-
*
|
224
|
+
*Joel Hawksley*, *Aaron Patterson*
|
258
225
|
|
259
|
-
*
|
260
|
-
|
226
|
+
* `ActionView::Helpers::TranslationHelper#translate` returns nil when
|
227
|
+
passed `default: nil` without a translation matching `I18n#translate`.
|
261
228
|
|
262
|
-
|
229
|
+
*Stefan Wrobel*
|
263
230
|
|
264
|
-
|
231
|
+
* `OptimizedFileSystemResolver` prefers template details in order of locale,
|
232
|
+
formats, variants, handlers.
|
265
233
|
|
266
|
-
*
|
267
|
-
support automatic nonce generation for Content Security Policy.
|
268
|
-
Works the same way as `javascript_tag nonce: true` does.
|
234
|
+
*Iago Pimenta*
|
269
235
|
|
270
|
-
|
236
|
+
* Added `class_names` helper to create a CSS class value with conditional classes.
|
271
237
|
|
272
|
-
*
|
238
|
+
*Joel Hawksley*, *Aaron Patterson*
|
273
239
|
|
274
|
-
|
240
|
+
* Add support for conditional values to TagBuilder.
|
275
241
|
|
276
|
-
*
|
242
|
+
*Joel Hawksley*
|
277
243
|
|
278
|
-
|
279
|
-
Add a configuration option,
|
280
|
-
`action_view.finalize_compiled_template_methods`, and turn it off in
|
281
|
-
the test environment.
|
244
|
+
* `ActionView::Helpers::FormOptionsHelper#select` should mark option for `nil` as selected.
|
282
245
|
|
283
|
-
|
246
|
+
```ruby
|
247
|
+
@post = Post.new
|
248
|
+
@post.category = nil
|
284
249
|
|
285
|
-
|
250
|
+
# Before
|
251
|
+
select("post", "category", none: nil, programming: 1, economics: 2)
|
252
|
+
# =>
|
253
|
+
# <select name="post[category]" id="post_category">
|
254
|
+
# <option value="">none</option>
|
255
|
+
# <option value="1">programming</option>
|
256
|
+
# <option value="2">economics</option>
|
257
|
+
# </select>
|
286
258
|
|
287
|
-
|
259
|
+
# After
|
260
|
+
select("post", "category", none: nil, programming: 1, economics: 2)
|
261
|
+
# =>
|
262
|
+
# <select name="post[category]" id="post_category">
|
263
|
+
# <option selected="selected" value="">none</option>
|
264
|
+
# <option value="1">programming</option>
|
265
|
+
# <option value="2">economics</option>
|
266
|
+
# </select>
|
267
|
+
```
|
288
268
|
|
289
|
-
|
290
|
-
return (my_bootstrap_modal_confirm(message));
|
291
|
-
}
|
269
|
+
*bogdanvlviv*
|
292
270
|
|
293
|
-
|
271
|
+
* Log lines for partial renders and started template renders are now
|
272
|
+
emitted at the `DEBUG` level instead of `INFO`.
|
294
273
|
|
295
|
-
|
296
|
-
field.
|
274
|
+
Completed template renders are still logged at the `INFO` level.
|
297
275
|
|
298
|
-
|
276
|
+
*DHH*
|
299
277
|
|
300
|
-
|
301
|
-
:category,
|
302
|
-
["lifestyle", "programming", "spiritual"],
|
303
|
-
{ selected: "", disabled: "", prompt: "Choose one" },
|
304
|
-
{ required: true }
|
278
|
+
* ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
|
305
279
|
|
306
|
-
|
280
|
+
*Juanito Fatas*
|
307
281
|
|
308
|
-
|
282
|
+
* Added `phone_to` helper method to create a link from mobile numbers.
|
309
283
|
|
310
|
-
|
311
|
-
<option disabled="disabled" selected="selected" value="">Choose one</option>
|
312
|
-
<option value="lifestyle">lifestyle</option>
|
313
|
-
<option value="programming">programming</option>
|
314
|
-
<option value="spiritual">spiritual</option></select>
|
284
|
+
*Pietro Moro*
|
315
285
|
|
316
|
-
|
286
|
+
* annotated_source_code returns an empty array so TemplateErrors without a
|
287
|
+
template in the backtrace are surfaced properly by DebugExceptions.
|
317
288
|
|
318
|
-
*
|
289
|
+
*Guilherme Mansur*, *Kasper Timm Hansen*
|
319
290
|
|
320
|
-
|
321
|
-
IE8 or lower becomes increasingly difficult so default to not enforcing
|
322
|
-
UTF-8 encoding as it's not relevant to other browsers.
|
291
|
+
* Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
|
323
292
|
|
324
|
-
*
|
293
|
+
*Guilherme Mansur*, *Gannon McGibbon*
|
325
294
|
|
326
|
-
*
|
295
|
+
* `RenderingHelper` supports rendering objects that `respond_to?` `:render_in`.
|
327
296
|
|
328
|
-
*
|
297
|
+
*Joel Hawksley*, *Natasha Umer*, *Aaron Patterson*, *Shawn Allen*, *Emily Plummer*, *Diana Mounter*, *John Hawthorn*, *Nathan Herald*, *Zaid Zawaideh*, *Zach Ahn*
|
329
298
|
|
330
|
-
*
|
299
|
+
* Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
|
331
300
|
|
332
|
-
*
|
301
|
+
*Younes SERRAJ*
|
333
302
|
|
334
303
|
|
335
|
-
Please check [
|
304
|
+
Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actionview/CHANGELOG.md) for previous changes.
|