actionview 5.2.4.4 → 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 +221 -93
- data/MIT-LICENSE +1 -1
- data/README.rdoc +5 -3
- data/lib/action_view.rb +7 -2
- data/lib/action_view/base.rb +81 -15
- data/lib/action_view/buffers.rb +15 -0
- data/lib/action_view/cache_expiry.rb +52 -0
- data/lib/action_view/context.rb +5 -9
- data/lib/action_view/dependency_tracker.rb +10 -4
- data/lib/action_view/digestor.rb +15 -22
- data/lib/action_view/flows.rb +0 -1
- data/lib/action_view/gem_version.rb +4 -4
- data/lib/action_view/helpers.rb +0 -2
- data/lib/action_view/helpers/active_model_helper.rb +0 -1
- data/lib/action_view/helpers/asset_tag_helper.rb +63 -46
- data/lib/action_view/helpers/asset_url_helper.rb +9 -6
- data/lib/action_view/helpers/atom_feed_helper.rb +2 -1
- data/lib/action_view/helpers/cache_helper.rb +23 -22
- data/lib/action_view/helpers/capture_helper.rb +4 -0
- data/lib/action_view/helpers/csp_helper.rb +4 -2
- data/lib/action_view/helpers/csrf_helper.rb +1 -1
- data/lib/action_view/helpers/date_helper.rb +73 -30
- data/lib/action_view/helpers/form_helper.rb +305 -37
- data/lib/action_view/helpers/form_options_helper.rb +23 -23
- data/lib/action_view/helpers/form_tag_helper.rb +19 -16
- data/lib/action_view/helpers/javascript_helper.rb +12 -11
- data/lib/action_view/helpers/number_helper.rb +14 -8
- data/lib/action_view/helpers/output_safety_helper.rb +1 -1
- data/lib/action_view/helpers/rendering_helper.rb +17 -7
- data/lib/action_view/helpers/sanitize_helper.rb +12 -18
- data/lib/action_view/helpers/tag_helper.rb +98 -22
- data/lib/action_view/helpers/tags/base.rb +18 -11
- data/lib/action_view/helpers/tags/check_box.rb +0 -1
- data/lib/action_view/helpers/tags/collection_check_boxes.rb +0 -1
- data/lib/action_view/helpers/tags/collection_helpers.rb +0 -1
- data/lib/action_view/helpers/tags/collection_radio_buttons.rb +0 -1
- data/lib/action_view/helpers/tags/color_field.rb +1 -2
- data/lib/action_view/helpers/tags/date_field.rb +1 -2
- data/lib/action_view/helpers/tags/date_select.rb +2 -3
- data/lib/action_view/helpers/tags/datetime_field.rb +0 -1
- data/lib/action_view/helpers/tags/datetime_local_field.rb +1 -2
- data/lib/action_view/helpers/tags/label.rb +4 -1
- data/lib/action_view/helpers/tags/month_field.rb +1 -2
- data/lib/action_view/helpers/tags/radio_button.rb +0 -1
- data/lib/action_view/helpers/tags/select.rb +1 -2
- data/lib/action_view/helpers/tags/text_field.rb +0 -1
- data/lib/action_view/helpers/tags/time_field.rb +1 -2
- data/lib/action_view/helpers/tags/translator.rb +1 -6
- data/lib/action_view/helpers/tags/week_field.rb +1 -2
- data/lib/action_view/helpers/text_helper.rb +3 -4
- data/lib/action_view/helpers/translation_helper.rb +93 -55
- data/lib/action_view/helpers/url_helper.rb +121 -27
- data/lib/action_view/layouts.rb +8 -10
- data/lib/action_view/log_subscriber.rb +30 -15
- data/lib/action_view/lookup_context.rb +63 -35
- data/lib/action_view/path_set.rb +3 -12
- data/lib/action_view/railtie.rb +42 -26
- data/lib/action_view/record_identifier.rb +2 -3
- data/lib/action_view/renderer/abstract_renderer.rb +142 -11
- 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 +21 -273
- data/lib/action_view/renderer/partial_renderer/collection_caching.rb +61 -16
- data/lib/action_view/renderer/renderer.rb +59 -4
- data/lib/action_view/renderer/streaming_template_renderer.rb +10 -8
- data/lib/action_view/renderer/template_renderer.rb +35 -27
- data/lib/action_view/rendering.rb +54 -33
- data/lib/action_view/routing_url_for.rb +13 -12
- data/lib/action_view/template.rb +66 -75
- data/lib/action_view/template/error.rb +30 -15
- data/lib/action_view/template/handlers.rb +1 -1
- data/lib/action_view/template/handlers/builder.rb +2 -2
- data/lib/action_view/template/handlers/erb.rb +16 -11
- data/lib/action_view/template/handlers/erb/erubi.rb +15 -9
- data/lib/action_view/template/handlers/html.rb +1 -1
- data/lib/action_view/template/handlers/raw.rb +2 -2
- data/lib/action_view/template/html.rb +5 -6
- data/lib/action_view/template/inline.rb +22 -0
- data/lib/action_view/template/raw_file.rb +25 -0
- data/lib/action_view/template/renderable.rb +24 -0
- data/lib/action_view/template/resolver.rb +191 -150
- data/lib/action_view/template/sources.rb +13 -0
- data/lib/action_view/template/sources/file.rb +17 -0
- data/lib/action_view/template/text.rb +2 -3
- data/lib/action_view/test_case.rb +21 -29
- data/lib/action_view/testing/resolvers.rb +18 -27
- data/lib/action_view/unbound_template.rb +31 -0
- data/lib/action_view/view_paths.rb +59 -38
- data/lib/assets/compiled/rails-ujs.js +29 -3
- metadata +32 -21
- data/lib/action_view/helpers/record_tag_helper.rb +0 -23
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,176 +1,304 @@
|
|
1
|
-
## Rails
|
1
|
+
## Rails 6.1.1 (January 07, 2021) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Fix lazy translation in partial with block.
|
4
|
+
|
5
|
+
*Marek Kasztelnik*
|
6
|
+
|
7
|
+
* Avoid extra `SELECT COUNT` queries when rendering Active Record collections.
|
8
|
+
|
9
|
+
*aar0nr*
|
10
|
+
|
11
|
+
* Link preloading keep integrity hashes in the header.
|
12
|
+
|
13
|
+
*Étienne Barrié*
|
14
|
+
|
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`.
|
18
|
+
|
19
|
+
*Andrew White*
|
20
|
+
|
21
|
+
* The `translate` helper now resolves `default` values when a `nil` key is
|
22
|
+
specified, instead of always returning `nil`.
|
4
23
|
|
5
24
|
*Jonathan Hefner*
|
6
25
|
|
7
26
|
|
8
|
-
## Rails
|
27
|
+
## Rails 6.1.0 (December 09, 2020) ##
|
9
28
|
|
10
|
-
*
|
29
|
+
* SanitizeHelper.sanitized_allowed_attributes and SanitizeHelper.sanitized_allowed_tags
|
30
|
+
call safe_list_sanitizer's class method
|
11
31
|
|
32
|
+
Fixes #39586
|
12
33
|
|
13
|
-
|
34
|
+
*Taufiq Muhammadi*
|
14
35
|
|
15
|
-
*
|
36
|
+
* Change form_with to generate non-remote forms by default.
|
16
37
|
|
38
|
+
`form_with` would generate a remote form by default. This would confuse
|
39
|
+
users because they were forced to handle remote requests.
|
17
40
|
|
18
|
-
|
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`.
|
19
44
|
|
20
|
-
*
|
21
|
-
Programmatic click events (eg. ones generated by `Rails.fire(link, "click")`) don't specify a button. These events were being incorrectly stopped by code meant to ignore scroll wheel and right clicks introduced in #34573.
|
45
|
+
*Petrik de Heus*
|
22
46
|
|
23
|
-
|
47
|
+
* Yield translated strings to calls of `ActionView::FormBuilder#button`
|
48
|
+
when a block is given.
|
24
49
|
|
50
|
+
*Sean Doyle*
|
25
51
|
|
26
|
-
|
52
|
+
* Alias `ActionView::Helpers::Tags::Label::LabelBuilder#translation` to
|
53
|
+
`#to_s` so that `form.label` calls can yield that value to their blocks.
|
27
54
|
|
28
|
-
*
|
29
|
-
Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
|
30
|
-
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.
|
55
|
+
*Sean Doyle*
|
31
56
|
|
32
|
-
|
33
|
-
|
34
|
-
|
57
|
+
* Rename the new `TagHelper#class_names` method to `TagHelper#token_list`,
|
58
|
+
and make the original available as an alias.
|
59
|
+
|
60
|
+
token_list("foo", "foo bar")
|
61
|
+
# => "foo bar"
|
62
|
+
|
63
|
+
*Sean Doyle*
|
64
|
+
|
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`.
|
68
|
+
|
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
|
+
>
|
79
|
+
|
80
|
+
*Sean Doyle*
|
81
|
+
|
82
|
+
* Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`.
|
83
|
+
|
84
|
+
*Rafael Mendonça França*
|
35
85
|
|
36
|
-
|
86
|
+
* Remove deprecated `find_all_anywhere` from `ActionView::Resolver`.
|
37
87
|
|
38
|
-
*
|
88
|
+
*Rafael Mendonça França*
|
39
89
|
|
90
|
+
* Remove deprecated `formats` from `ActionView::Template::HTML`.
|
40
91
|
|
41
|
-
|
92
|
+
*Rafael Mendonça França*
|
42
93
|
|
43
|
-
*
|
94
|
+
* Remove deprecated `formats` from `ActionView::Template::RawFile`.
|
44
95
|
|
45
|
-
|
46
|
-
arbitrary files on the target server or to perform a denial of service
|
47
|
-
attack.
|
96
|
+
*Rafael Mendonça França*
|
48
97
|
|
49
|
-
|
50
|
-
Fixes CVE-2019-5419
|
98
|
+
* Remove deprecated `formats` from `ActionView::Template::Text`.
|
51
99
|
|
52
|
-
*
|
100
|
+
*Rafael Mendonça França*
|
53
101
|
|
102
|
+
* Remove deprecated `find_file` from `ActionView::PathSet`.
|
54
103
|
|
55
|
-
|
104
|
+
*Rafael Mendonça França*
|
56
105
|
|
57
|
-
*
|
106
|
+
* Remove deprecated `rendered_format` from `ActionView::LookupContext`.
|
58
107
|
|
108
|
+
*Rafael Mendonça França*
|
59
109
|
|
60
|
-
|
110
|
+
* Remove deprecated `find_file` from `ActionView::ViewPaths`.
|
61
111
|
|
62
|
-
*
|
112
|
+
*Rafael Mendonça França*
|
63
113
|
|
114
|
+
* Require that `ActionView::Base` subclasses implement `#compiled_method_container`.
|
64
115
|
|
65
|
-
|
116
|
+
*Rafael Mendonça França*
|
66
117
|
|
67
|
-
*
|
68
|
-
|
118
|
+
* Remove deprecated support to pass an object that is not a `ActionView::LookupContext` as the first argument
|
119
|
+
in `ActionView::Base#initialize`.
|
69
120
|
|
70
|
-
*
|
121
|
+
*Rafael Mendonça França*
|
71
122
|
|
72
|
-
*
|
123
|
+
* Remove deprecated `format` argument `ActionView::Base#initialize`.
|
73
124
|
|
74
|
-
|
75
|
-
contains symbol and string keys. The reason for the exception was that
|
76
|
-
`to_form_params` was comparing the given symbol and string keys.
|
125
|
+
*Rafael Mendonça França*
|
77
126
|
|
78
|
-
|
79
|
-
`to_form_params` before comparing them.
|
127
|
+
* Remove deprecated `ActionView::Template#refresh`.
|
80
128
|
|
81
|
-
*
|
129
|
+
*Rafael Mendonça França*
|
82
130
|
|
83
|
-
*
|
84
|
-
Content Security Policy.
|
131
|
+
* Remove deprecated `ActionView::Template#original_encoding`.
|
85
132
|
|
86
|
-
|
133
|
+
*Rafael Mendonça França*
|
87
134
|
|
88
|
-
|
135
|
+
* Remove deprecated `ActionView::Template#variants`.
|
89
136
|
|
90
|
-
*
|
91
|
-
support automatic nonce generation for Content Security Policy.
|
92
|
-
Works the same way as `javascript_tag nonce: true` does.
|
137
|
+
*Rafael Mendonça França*
|
93
138
|
|
94
|
-
|
139
|
+
* Remove deprecated `ActionView::Template#formats`.
|
95
140
|
|
141
|
+
*Rafael Mendonça França*
|
96
142
|
|
97
|
-
|
143
|
+
* Remove deprecated `ActionView::Template#virtual_path=`.
|
98
144
|
|
99
|
-
*
|
145
|
+
*Rafael Mendonça França*
|
100
146
|
|
101
|
-
|
147
|
+
* Remove deprecated `ActionView::Template#updated_at`.
|
102
148
|
|
103
|
-
*
|
149
|
+
*Rafael Mendonça França*
|
150
|
+
|
151
|
+
* Remove deprecated `updated_at` argument required on `ActionView::Template#initialize`.
|
152
|
+
|
153
|
+
*Rafael Mendonça França*
|
104
154
|
|
105
|
-
*
|
155
|
+
* Make `locals` argument required on `ActionView::Template#initialize`.
|
106
156
|
|
107
|
-
|
108
|
-
handle method names as `group_method` and `group_label_method` parameters,
|
109
|
-
it is now able to receive procs and other callable objects too.
|
157
|
+
*Rafael Mendonça França*
|
110
158
|
|
111
|
-
|
159
|
+
* Remove deprecated `ActionView::Template.finalize_compiled_template_methods`.
|
112
160
|
|
113
|
-
*
|
161
|
+
*Rafael Mendonça França*
|
114
162
|
|
115
|
-
|
116
|
-
|
117
|
-
|
163
|
+
* Remove deprecated `config.action_view.finalize_compiled_template_methods`
|
164
|
+
|
165
|
+
*Rafael Mendonça França*
|
118
166
|
|
119
|
-
|
167
|
+
* Remove deprecated support to calling `ActionView::ViewPaths#with_fallback` with a block.
|
120
168
|
|
121
|
-
*
|
169
|
+
*Rafael Mendonça França*
|
122
170
|
|
123
|
-
|
124
|
-
that was enabled in `form_for`. This usually is not an good idea since labels don't work
|
125
|
-
when the input doesn't have an id and it made harder to test with Capybara.
|
171
|
+
* Remove deprecated support to passing absolute paths to `render template:`.
|
126
172
|
|
127
|
-
|
128
|
-
to `false.`
|
173
|
+
*Rafael Mendonça França*
|
129
174
|
|
130
|
-
|
175
|
+
* Remove deprecated support to passing relative paths to `render file:`.
|
131
176
|
|
132
|
-
*
|
177
|
+
*Rafael Mendonça França*
|
133
178
|
|
134
|
-
|
179
|
+
* Remove support to template handlers that don't accept two arguments.
|
135
180
|
|
136
|
-
*
|
181
|
+
*Rafael Mendonça França*
|
137
182
|
|
138
|
-
* Remove deprecated
|
183
|
+
* Remove deprecated pattern argument in `ActionView::Template::PathResolver`.
|
139
184
|
|
140
185
|
*Rafael Mendonça França*
|
141
186
|
|
142
|
-
* Remove
|
187
|
+
* Remove deprecated support to call private methods from object in some view helpers.
|
188
|
+
|
189
|
+
*Rafael Mendonça França*
|
190
|
+
|
191
|
+
* `ActionView::Helpers::TranslationHelper#translate` accepts a block, yielding
|
192
|
+
the translated text and the fully resolved translation key:
|
193
|
+
|
194
|
+
<%= translate(".relative_key") do |translation, resolved_key| %>
|
195
|
+
<span title="<%= resolved_key %>"><%= translation %></span>
|
196
|
+
<% end %>
|
197
|
+
|
198
|
+
*Sean Doyle*
|
199
|
+
|
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.
|
204
|
+
|
205
|
+
Fixes #38984.
|
206
|
+
|
207
|
+
*Aaron Lipman*
|
208
|
+
|
209
|
+
* Deprecate `config.action_view.raise_on_missing_translations` in favor of
|
210
|
+
`config.i18n.raise_on_missing_translations`.
|
211
|
+
|
212
|
+
New generalized configuration option now determines whether an error should be raised
|
213
|
+
for missing translations in controllers and views.
|
214
|
+
|
215
|
+
*fatkodima*
|
216
|
+
|
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.
|
219
|
+
|
220
|
+
*Zach Kemp*
|
221
|
+
|
222
|
+
* `ActionView::Base.annotate_rendered_view_with_filenames` annotates HTML output with template file names.
|
223
|
+
|
224
|
+
*Joel Hawksley*, *Aaron Patterson*
|
225
|
+
|
226
|
+
* `ActionView::Helpers::TranslationHelper#translate` returns nil when
|
227
|
+
passed `default: nil` without a translation matching `I18n#translate`.
|
228
|
+
|
229
|
+
*Stefan Wrobel*
|
230
|
+
|
231
|
+
* `OptimizedFileSystemResolver` prefers template details in order of locale,
|
232
|
+
formats, variants, handlers.
|
233
|
+
|
234
|
+
*Iago Pimenta*
|
235
|
+
|
236
|
+
* Added `class_names` helper to create a CSS class value with conditional classes.
|
237
|
+
|
238
|
+
*Joel Hawksley*, *Aaron Patterson*
|
239
|
+
|
240
|
+
* Add support for conditional values to TagBuilder.
|
241
|
+
|
242
|
+
*Joel Hawksley*
|
243
|
+
|
244
|
+
* `ActionView::Helpers::FormOptionsHelper#select` should mark option for `nil` as selected.
|
245
|
+
|
246
|
+
```ruby
|
247
|
+
@post = Post.new
|
248
|
+
@post.category = nil
|
249
|
+
|
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>
|
258
|
+
|
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
|
+
```
|
268
|
+
|
269
|
+
*bogdanvlviv*
|
143
270
|
|
144
|
-
|
271
|
+
* Log lines for partial renders and started template renders are now
|
272
|
+
emitted at the `DEBUG` level instead of `INFO`.
|
145
273
|
|
146
|
-
|
274
|
+
Completed template renders are still logged at the `INFO` level.
|
147
275
|
|
148
|
-
*
|
276
|
+
*DHH*
|
149
277
|
|
150
|
-
|
278
|
+
* ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
|
151
279
|
|
152
|
-
*
|
280
|
+
*Juanito Fatas*
|
153
281
|
|
154
|
-
|
282
|
+
* Added `phone_to` helper method to create a link from mobile numbers.
|
155
283
|
|
156
|
-
*
|
284
|
+
*Pietro Moro*
|
157
285
|
|
158
|
-
*
|
286
|
+
* annotated_source_code returns an empty array so TemplateErrors without a
|
287
|
+
template in the backtrace are surfaced properly by DebugExceptions.
|
159
288
|
|
160
|
-
|
289
|
+
*Guilherme Mansur*, *Kasper Timm Hansen*
|
161
290
|
|
162
|
-
|
291
|
+
* Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
|
163
292
|
|
164
|
-
*
|
293
|
+
*Guilherme Mansur*, *Gannon McGibbon*
|
165
294
|
|
166
|
-
*
|
295
|
+
* `RenderingHelper` supports rendering objects that `respond_to?` `:render_in`.
|
167
296
|
|
168
|
-
*
|
297
|
+
*Joel Hawksley*, *Natasha Umer*, *Aaron Patterson*, *Shawn Allen*, *Emily Plummer*, *Diana Mounter*, *John Hawthorn*, *Nathan Herald*, *Zaid Zawaideh*, *Zach Ahn*
|
169
298
|
|
170
|
-
*
|
171
|
-
for bad input.
|
299
|
+
* Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
|
172
300
|
|
173
|
-
*
|
301
|
+
*Younes SERRAJ*
|
174
302
|
|
175
303
|
|
176
|
-
Please check [
|
304
|
+
Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actionview/CHANGELOG.md) for previous changes.
|
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -5,6 +5,8 @@ view helpers that assist when building HTML forms, Atom feeds and more.
|
|
5
5
|
Template formats that Action View handles are ERB (embedded Ruby, typically
|
6
6
|
used to inline short Ruby snippets inside HTML), and XML Builder.
|
7
7
|
|
8
|
+
You can read more about Action View in the {Action View Overview}[https://edgeguides.rubyonrails.org/action_view_overview.html] guide.
|
9
|
+
|
8
10
|
== Download and installation
|
9
11
|
|
10
12
|
The latest version of Action View can be installed with RubyGems:
|
@@ -13,7 +15,7 @@ The latest version of Action View can be installed with RubyGems:
|
|
13
15
|
|
14
16
|
Source code can be downloaded as part of the Rails project on GitHub:
|
15
17
|
|
16
|
-
* https://github.com/rails/rails/tree/
|
18
|
+
* https://github.com/rails/rails/tree/master/actionview
|
17
19
|
|
18
20
|
|
19
21
|
== License
|
@@ -27,7 +29,7 @@ Action View is released under the MIT license:
|
|
27
29
|
|
28
30
|
API documentation is at
|
29
31
|
|
30
|
-
*
|
32
|
+
* https://api.rubyonrails.org
|
31
33
|
|
32
34
|
Bug reports for the Ruby on Rails project can be filed here:
|
33
35
|
|
@@ -35,4 +37,4 @@ Bug reports for the Ruby on Rails project can be filed here:
|
|
35
37
|
|
36
38
|
Feature requests should be discussed on the rails-core mailing list here:
|
37
39
|
|
38
|
-
* https://
|
40
|
+
* https://discuss.rubyonrails.org/c/rubyonrails-core
|
data/lib/action_view.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
#--
|
4
|
-
# Copyright (c) 2004-
|
4
|
+
# Copyright (c) 2004-2020 David Heinemeier Hansson
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining
|
7
7
|
# a copy of this software and associated documentation files (the
|
@@ -35,7 +35,6 @@ module ActionView
|
|
35
35
|
eager_autoload do
|
36
36
|
autoload :Base
|
37
37
|
autoload :Context
|
38
|
-
autoload :CompiledTemplates, "action_view/context"
|
39
38
|
autoload :Digestor
|
40
39
|
autoload :Helpers
|
41
40
|
autoload :LookupContext
|
@@ -45,12 +44,15 @@ module ActionView
|
|
45
44
|
autoload :Rendering
|
46
45
|
autoload :RoutingUrlFor
|
47
46
|
autoload :Template
|
47
|
+
autoload :UnboundTemplate
|
48
48
|
autoload :ViewPaths
|
49
49
|
|
50
50
|
autoload_under "renderer" do
|
51
51
|
autoload :Renderer
|
52
52
|
autoload :AbstractRenderer
|
53
53
|
autoload :PartialRenderer
|
54
|
+
autoload :CollectionRenderer
|
55
|
+
autoload :ObjectRenderer
|
54
56
|
autoload :TemplateRenderer
|
55
57
|
autoload :StreamingTemplateRenderer
|
56
58
|
end
|
@@ -58,6 +60,7 @@ module ActionView
|
|
58
60
|
autoload_at "action_view/template/resolver" do
|
59
61
|
autoload :Resolver
|
60
62
|
autoload :PathResolver
|
63
|
+
autoload :FileSystemResolver
|
61
64
|
autoload :OptimizedFileSystemResolver
|
62
65
|
autoload :FallbackFileSystemResolver
|
63
66
|
end
|
@@ -77,10 +80,12 @@ module ActionView
|
|
77
80
|
autoload :ActionViewError
|
78
81
|
autoload :EncodingError
|
79
82
|
autoload :TemplateError
|
83
|
+
autoload :SyntaxErrorInTemplate
|
80
84
|
autoload :WrongEncodingError
|
81
85
|
end
|
82
86
|
end
|
83
87
|
|
88
|
+
autoload :CacheExpiry
|
84
89
|
autoload :TestCase
|
85
90
|
|
86
91
|
def self.eager_load!
|