actionview 6.1.3.1 → 7.0.0.alpha1
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 +98 -261
- data/MIT-LICENSE +1 -1
- data/lib/action_view/base.rb +3 -3
- data/lib/action_view/buffers.rb +2 -2
- data/lib/action_view/cache_expiry.rb +46 -32
- data/lib/action_view/dependency_tracker/erb_tracker.rb +154 -0
- data/lib/action_view/dependency_tracker/ripper_tracker.rb +59 -0
- data/lib/action_view/dependency_tracker.rb +6 -147
- data/lib/action_view/digestor.rb +7 -4
- data/lib/action_view/flows.rb +4 -4
- data/lib/action_view/gem_version.rb +4 -4
- data/lib/action_view/helpers/active_model_helper.rb +1 -1
- data/lib/action_view/helpers/asset_tag_helper.rb +85 -30
- data/lib/action_view/helpers/asset_url_helper.rb +7 -7
- data/lib/action_view/helpers/atom_feed_helper.rb +3 -4
- data/lib/action_view/helpers/cache_helper.rb +51 -3
- data/lib/action_view/helpers/capture_helper.rb +2 -2
- data/lib/action_view/helpers/controller_helper.rb +2 -2
- data/lib/action_view/helpers/csp_helper.rb +1 -1
- data/lib/action_view/helpers/csrf_helper.rb +1 -1
- data/lib/action_view/helpers/date_helper.rb +5 -5
- data/lib/action_view/helpers/debug_helper.rb +3 -1
- data/lib/action_view/helpers/form_helper.rb +72 -12
- data/lib/action_view/helpers/form_options_helper.rb +65 -33
- data/lib/action_view/helpers/form_tag_helper.rb +73 -30
- data/lib/action_view/helpers/javascript_helper.rb +3 -5
- data/lib/action_view/helpers/number_helper.rb +3 -4
- data/lib/action_view/helpers/output_safety_helper.rb +2 -2
- data/lib/action_view/helpers/rendering_helper.rb +1 -1
- data/lib/action_view/helpers/sanitize_helper.rb +2 -2
- data/lib/action_view/helpers/tag_helper.rb +17 -4
- data/lib/action_view/helpers/tags/base.rb +2 -14
- data/lib/action_view/helpers/tags/check_box.rb +1 -1
- data/lib/action_view/helpers/tags/collection_select.rb +1 -1
- data/lib/action_view/helpers/tags/time_field.rb +10 -1
- data/lib/action_view/helpers/tags/weekday_select.rb +27 -0
- data/lib/action_view/helpers/tags.rb +3 -2
- data/lib/action_view/helpers/text_helper.rb +24 -13
- data/lib/action_view/helpers/translation_helper.rb +4 -3
- data/lib/action_view/helpers/url_helper.rb +122 -80
- data/lib/action_view/helpers.rb +25 -25
- data/lib/action_view/lookup_context.rb +33 -52
- data/lib/action_view/model_naming.rb +1 -1
- data/lib/action_view/path_set.rb +16 -22
- data/lib/action_view/railtie.rb +15 -2
- data/lib/action_view/render_parser.rb +188 -0
- data/lib/action_view/renderer/abstract_renderer.rb +2 -2
- data/lib/action_view/renderer/partial_renderer.rb +0 -34
- data/lib/action_view/renderer/renderer.rb +4 -4
- data/lib/action_view/renderer/streaming_template_renderer.rb +3 -3
- data/lib/action_view/renderer/template_renderer.rb +6 -2
- data/lib/action_view/rendering.rb +2 -2
- data/lib/action_view/ripper_ast_parser.rb +198 -0
- data/lib/action_view/routing_url_for.rb +1 -1
- data/lib/action_view/template/error.rb +108 -13
- data/lib/action_view/template/handlers/erb.rb +6 -0
- data/lib/action_view/template/handlers.rb +3 -3
- data/lib/action_view/template/html.rb +3 -3
- data/lib/action_view/template/inline.rb +3 -3
- data/lib/action_view/template/raw_file.rb +3 -3
- data/lib/action_view/template/resolver.rb +84 -311
- data/lib/action_view/template/text.rb +3 -3
- data/lib/action_view/template/types.rb +14 -12
- data/lib/action_view/template.rb +10 -1
- data/lib/action_view/template_details.rb +66 -0
- data/lib/action_view/template_path.rb +64 -0
- data/lib/action_view/test_case.rb +6 -2
- data/lib/action_view/testing/resolvers.rb +11 -12
- data/lib/action_view/unbound_template.rb +33 -7
- data/lib/action_view.rb +3 -4
- data/lib/assets/compiled/rails-ujs.js +2 -2
- metadata +22 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 488edff5bf41873248138efbc0c8ee4ecd1809793a99ebe520870d35e2a6e459
|
4
|
+
data.tar.gz: 429fd7c60ef3fb02df47871d05a7289cfda25e21586928dc1accebaa45678a7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3db204604fb84ce3ab96976aad76fffb4938a2ec6ad7f965b2dc59a785622888867f92df3282ae560d6fb594fecc215a1c18340329ea912bed58c74d457e6824
|
7
|
+
data.tar.gz: 7eb29f984ea723f25728f8ae0c06127b7728501e18e690b0b73972d34a3bd467783760c293d50bc474f1fba9ddc824c02678af7653edcab8a5703766a572b96f
|
data/CHANGELOG.md
CHANGED
@@ -1,324 +1,161 @@
|
|
1
|
-
## Rails
|
1
|
+
## Rails 7.0.0.alpha1 (September 15, 2021) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Improves the performance of ActionView::Helpers::NumberHelper formatters by avoiding the use of
|
4
|
+
exceptions as flow control.
|
4
5
|
|
6
|
+
*Mike Dalessio*
|
5
7
|
|
6
|
-
|
8
|
+
* `preload_link_tag` properly inserts `as` attributes for files with `image` MIME types, such as JPG or SVG.
|
7
9
|
|
8
|
-
*
|
10
|
+
*Nate Berkopec*
|
9
11
|
|
12
|
+
* Add `weekday_options_for_select` and `weekday_select` helper methods. Also adds `weekday_select` to `FormBuilder`.
|
10
13
|
|
11
|
-
|
14
|
+
*Drew Bragg*, *Dana Kashubeck*, *Kasper Timm Hansen*
|
12
15
|
|
13
|
-
*
|
16
|
+
* Add `caching?` helper that returns whether the current code path is being cached and `uncacheable!` to denote helper methods that can't participate in fragment caching.
|
14
17
|
|
18
|
+
*Ben Toews*, *John Hawthorn*, *Kasper Timm Hansen*, *Joel Hawksley*
|
15
19
|
|
16
|
-
|
20
|
+
* Add `include_seconds` option for `time_field`.
|
17
21
|
|
18
|
-
|
22
|
+
<%= form.time_field :foo, include_seconds: false %>
|
23
|
+
# => <input value="16:22" type="time" />
|
19
24
|
|
25
|
+
Default includes seconds:
|
20
26
|
|
21
|
-
|
27
|
+
<%= form.time_field :foo %>
|
28
|
+
# => <input value="16:22:01.440" type="time" />
|
22
29
|
|
23
|
-
|
30
|
+
This allows you to take advantage of [different rendering options](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time#time_value_format) in some browsers.
|
24
31
|
|
25
|
-
*
|
32
|
+
*Alex Ghiculescu*
|
26
33
|
|
27
|
-
*
|
34
|
+
* Improve error messages when template file does not exist at absolute filepath.
|
28
35
|
|
29
|
-
*
|
36
|
+
*Ted Whang*
|
30
37
|
|
31
|
-
*
|
38
|
+
* Add `:country_code` option to `sms_to` for consistency with `phone_to`.
|
32
39
|
|
33
|
-
|
40
|
+
*Jonathan Hefner*
|
34
41
|
|
35
|
-
*
|
36
|
-
the `Link` header being added by default when using `stylesheet_link_tag`
|
37
|
-
and `javascript_include_tag`.
|
42
|
+
* OpenSSL constants are now used for Digest computations.
|
38
43
|
|
39
|
-
*
|
44
|
+
*Dirkjan Bussink*
|
40
45
|
|
41
|
-
* The `translate` helper now
|
42
|
-
|
46
|
+
* The `translate` helper now passes `default` values that aren't
|
47
|
+
translation keys through `I18n.translate` for interpolation.
|
43
48
|
|
44
49
|
*Jonathan Hefner*
|
45
50
|
|
51
|
+
* Adds option `extname` to `stylesheet_link_tag` to skip default
|
52
|
+
`.css` extension appended to the stylesheet path.
|
46
53
|
|
47
|
-
|
54
|
+
Before:
|
48
55
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
56
|
+
```ruby
|
57
|
+
stylesheet_link_tag "style.less"
|
58
|
+
# <link href="/stylesheets/style.less.scss" rel="stylesheet">
|
59
|
+
```
|
53
60
|
|
54
|
-
|
61
|
+
After:
|
55
62
|
|
56
|
-
|
63
|
+
```ruby
|
64
|
+
stylesheet_link_tag "style.less", extname: false, skip_pipeline: true, rel: "stylesheet/less"
|
65
|
+
# <link href="/stylesheets/style.less" rel="stylesheet/less">
|
66
|
+
```
|
57
67
|
|
58
|
-
|
59
|
-
users because they were forced to handle remote requests.
|
68
|
+
*Abhay Nikam*
|
60
69
|
|
61
|
-
|
62
|
-
When upgrading a 6.0 application you can enable remote forms by default by
|
63
|
-
setting `config.action_view.form_with_generates_remote_forms` to `true`.
|
70
|
+
* Deprecate `render` locals to be assigned to instance variables.
|
64
71
|
|
65
72
|
*Petrik de Heus*
|
66
73
|
|
67
|
-
*
|
68
|
-
when a block is given.
|
74
|
+
* Remove legacy default `media=screen` from `stylesheet_link_tag`.
|
69
75
|
|
70
|
-
*
|
76
|
+
*André Luis Leal Cardoso Junior*
|
71
77
|
|
72
|
-
*
|
73
|
-
|
78
|
+
* Change `ActionView::Helpers::FormBuilder#button` to transform `formmethod`
|
79
|
+
attributes into `_method="$VERB"` Form Data to enable varied same-form actions:
|
74
80
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
* ARIA Array and Hash attributes are treated as space separated `DOMTokenList`
|
86
|
-
values. This is useful when declaring lists of label text identifiers in
|
87
|
-
`aria-labelledby` or `aria-describedby`.
|
88
|
-
|
89
|
-
tag.input type: 'checkbox', name: 'published', aria: {
|
90
|
-
invalid: @post.errors[:published].any?,
|
91
|
-
labelledby: ['published_context', 'published_label'],
|
92
|
-
describedby: { published_errors: @post.errors[:published].any? }
|
93
|
-
}
|
94
|
-
#=> <input
|
95
|
-
type="checkbox" name="published" aria-invalid="true"
|
96
|
-
aria-labelledby="published_context published_label"
|
97
|
-
aria-describedby="published_errors"
|
98
|
-
>
|
81
|
+
<%= form_with model: post, method: :put do %>
|
82
|
+
<%= form.button "Update" %>
|
83
|
+
<%= form.button "Delete", formmethod: :delete %>
|
84
|
+
<% end %>
|
85
|
+
<%# => <form action="posts/1">
|
86
|
+
=> <input type="hidden" name="_method" value="put">
|
87
|
+
=> <button type="submit">Update</button>
|
88
|
+
=> <button type="submit" formmethod="post" name="_method" value="delete">Delete</button>
|
89
|
+
=> </form>
|
90
|
+
%>
|
99
91
|
|
100
92
|
*Sean Doyle*
|
101
93
|
|
102
|
-
*
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
* Remove deprecated `find_all_anywhere` from `ActionView::Resolver`.
|
107
|
-
|
108
|
-
*Rafael Mendonça França*
|
109
|
-
|
110
|
-
* Remove deprecated `formats` from `ActionView::Template::HTML`.
|
111
|
-
|
112
|
-
*Rafael Mendonça França*
|
113
|
-
|
114
|
-
* Remove deprecated `formats` from `ActionView::Template::RawFile`.
|
115
|
-
|
116
|
-
*Rafael Mendonça França*
|
117
|
-
|
118
|
-
* Remove deprecated `formats` from `ActionView::Template::Text`.
|
119
|
-
|
120
|
-
*Rafael Mendonça França*
|
121
|
-
|
122
|
-
* Remove deprecated `find_file` from `ActionView::PathSet`.
|
123
|
-
|
124
|
-
*Rafael Mendonça França*
|
125
|
-
|
126
|
-
* Remove deprecated `rendered_format` from `ActionView::LookupContext`.
|
127
|
-
|
128
|
-
*Rafael Mendonça França*
|
129
|
-
|
130
|
-
* Remove deprecated `find_file` from `ActionView::ViewPaths`.
|
131
|
-
|
132
|
-
*Rafael Mendonça França*
|
133
|
-
|
134
|
-
* Require that `ActionView::Base` subclasses implement `#compiled_method_container`.
|
135
|
-
|
136
|
-
*Rafael Mendonça França*
|
137
|
-
|
138
|
-
* Remove deprecated support to pass an object that is not a `ActionView::LookupContext` as the first argument
|
139
|
-
in `ActionView::Base#initialize`.
|
140
|
-
|
141
|
-
*Rafael Mendonça França*
|
142
|
-
|
143
|
-
* Remove deprecated `format` argument `ActionView::Base#initialize`.
|
144
|
-
|
145
|
-
*Rafael Mendonça França*
|
146
|
-
|
147
|
-
* Remove deprecated `ActionView::Template#refresh`.
|
148
|
-
|
149
|
-
*Rafael Mendonça França*
|
150
|
-
|
151
|
-
* Remove deprecated `ActionView::Template#original_encoding`.
|
152
|
-
|
153
|
-
*Rafael Mendonça França*
|
154
|
-
|
155
|
-
* Remove deprecated `ActionView::Template#variants`.
|
156
|
-
|
157
|
-
*Rafael Mendonça França*
|
158
|
-
|
159
|
-
* Remove deprecated `ActionView::Template#formats`.
|
160
|
-
|
161
|
-
*Rafael Mendonça França*
|
162
|
-
|
163
|
-
* Remove deprecated `ActionView::Template#virtual_path=`.
|
164
|
-
|
165
|
-
*Rafael Mendonça França*
|
166
|
-
|
167
|
-
* Remove deprecated `ActionView::Template#updated_at`.
|
168
|
-
|
169
|
-
*Rafael Mendonça França*
|
94
|
+
* Change `ActionView::Helpers::UrlHelper#button_to` to *always* render a
|
95
|
+
`<button>` element, regardless of whether or not the content is passed as
|
96
|
+
the first argument or as a block.
|
170
97
|
|
171
|
-
|
98
|
+
<%= button_to "Delete", post_path(@post), method: :delete %>
|
99
|
+
# => <form action="/posts/1"><input type="hidden" name="_method" value="delete"><button type="submit">Delete</button></form>
|
172
100
|
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
*Rafael Mendonça França*
|
178
|
-
|
179
|
-
* Remove deprecated `ActionView::Template.finalize_compiled_template_methods`.
|
180
|
-
|
181
|
-
*Rafael Mendonça França*
|
182
|
-
|
183
|
-
* Remove deprecated `config.action_view.finalize_compiled_template_methods`
|
184
|
-
|
185
|
-
*Rafael Mendonça França*
|
186
|
-
|
187
|
-
* Remove deprecated support to calling `ActionView::ViewPaths#with_fallback` with a block.
|
188
|
-
|
189
|
-
*Rafael Mendonça França*
|
190
|
-
|
191
|
-
* Remove deprecated support to passing absolute paths to `render template:`.
|
101
|
+
<%= button_to post_path(@post), method: :delete do %>
|
102
|
+
Delete
|
103
|
+
<% end %>
|
104
|
+
# => <form action="/posts/1"><input type="hidden" name="_method" value="delete"><button type="submit">Delete</button></form>
|
192
105
|
|
193
|
-
*
|
106
|
+
*Sean Doyle*, *Dusan Orlovic*
|
194
107
|
|
195
|
-
*
|
108
|
+
* Add `config.action_view.preload_links_header` to allow disabling of
|
109
|
+
the `Link` header being added by default when using `stylesheet_link_tag`
|
110
|
+
and `javascript_include_tag`.
|
196
111
|
|
197
|
-
*
|
112
|
+
*Andrew White*
|
198
113
|
|
199
|
-
*
|
114
|
+
* The `translate` helper now resolves `default` values when a `nil` key is
|
115
|
+
specified, instead of always returning `nil`.
|
200
116
|
|
201
|
-
*
|
117
|
+
*Jonathan Hefner*
|
202
118
|
|
203
|
-
*
|
119
|
+
* Add `config.action_view.image_loading` to configure the default value of
|
120
|
+
the `image_tag` `:loading` option.
|
204
121
|
|
205
|
-
|
122
|
+
By setting `config.action_view.image_loading = "lazy"`, an application can opt in to
|
123
|
+
lazy loading images sitewide, without changing view code.
|
206
124
|
|
207
|
-
*
|
125
|
+
*Jonathan Hefner*
|
208
126
|
|
209
|
-
|
127
|
+
* `ActionView::Helpers::FormBuilder#id` returns the value
|
128
|
+
of the `<form>` element's `id` attribute. With a `method` argument, returns
|
129
|
+
the `id` attribute for a form field with that name.
|
210
130
|
|
211
|
-
|
212
|
-
|
131
|
+
<%= form_for @post do |f| %>
|
132
|
+
<%# ... %>
|
213
133
|
|
214
|
-
|
215
|
-
|
134
|
+
<% content_for :sticky_footer do %>
|
135
|
+
<%= form.button(form: f.id) %>
|
136
|
+
<% end %>
|
216
137
|
<% end %>
|
217
138
|
|
218
139
|
*Sean Doyle*
|
219
140
|
|
220
|
-
*
|
221
|
-
|
222
|
-
virtual_path keyword arguments found in CacheHelper as they no longer possess
|
223
|
-
any function following 1581cab.
|
224
|
-
|
225
|
-
Fixes #38984.
|
226
|
-
|
227
|
-
*Aaron Lipman*
|
228
|
-
|
229
|
-
* Deprecate `config.action_view.raise_on_missing_translations` in favor of
|
230
|
-
`config.i18n.raise_on_missing_translations`.
|
231
|
-
|
232
|
-
New generalized configuration option now determines whether an error should be raised
|
233
|
-
for missing translations in controllers and views.
|
234
|
-
|
235
|
-
*fatkodima*
|
236
|
-
|
237
|
-
* Instrument layout rendering in `TemplateRenderer#render_with_layout` as `render_layout.action_view`,
|
238
|
-
and include (when necessary) the layout's virtual path in notification payloads for collection and partial renders.
|
239
|
-
|
240
|
-
*Zach Kemp*
|
241
|
-
|
242
|
-
* `ActionView::Base.annotate_rendered_view_with_filenames` annotates HTML output with template file names.
|
243
|
-
|
244
|
-
*Joel Hawksley*, *Aaron Patterson*
|
141
|
+
* `ActionView::Helpers::FormBuilder#field_id` returns the value generated by
|
142
|
+
the FormBuilder for the given attribute name.
|
245
143
|
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
* `OptimizedFileSystemResolver` prefers template details in order of locale,
|
252
|
-
formats, variants, handlers.
|
253
|
-
|
254
|
-
*Iago Pimenta*
|
255
|
-
|
256
|
-
* Added `class_names` helper to create a CSS class value with conditional classes.
|
257
|
-
|
258
|
-
*Joel Hawksley*, *Aaron Patterson*
|
259
|
-
|
260
|
-
* Add support for conditional values to TagBuilder.
|
261
|
-
|
262
|
-
*Joel Hawksley*
|
263
|
-
|
264
|
-
* `ActionView::Helpers::FormOptionsHelper#select` should mark option for `nil` as selected.
|
265
|
-
|
266
|
-
```ruby
|
267
|
-
@post = Post.new
|
268
|
-
@post.category = nil
|
269
|
-
|
270
|
-
# Before
|
271
|
-
select("post", "category", none: nil, programming: 1, economics: 2)
|
272
|
-
# =>
|
273
|
-
# <select name="post[category]" id="post_category">
|
274
|
-
# <option value="">none</option>
|
275
|
-
# <option value="1">programming</option>
|
276
|
-
# <option value="2">economics</option>
|
277
|
-
# </select>
|
278
|
-
|
279
|
-
# After
|
280
|
-
select("post", "category", none: nil, programming: 1, economics: 2)
|
281
|
-
# =>
|
282
|
-
# <select name="post[category]" id="post_category">
|
283
|
-
# <option selected="selected" value="">none</option>
|
284
|
-
# <option value="1">programming</option>
|
285
|
-
# <option value="2">economics</option>
|
286
|
-
# </select>
|
287
|
-
```
|
288
|
-
|
289
|
-
*bogdanvlviv*
|
290
|
-
|
291
|
-
* Log lines for partial renders and started template renders are now
|
292
|
-
emitted at the `DEBUG` level instead of `INFO`.
|
293
|
-
|
294
|
-
Completed template renders are still logged at the `INFO` level.
|
295
|
-
|
296
|
-
*DHH*
|
297
|
-
|
298
|
-
* ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
|
299
|
-
|
300
|
-
*Juanito Fatas*
|
301
|
-
|
302
|
-
* Added `phone_to` helper method to create a link from mobile numbers.
|
303
|
-
|
304
|
-
*Pietro Moro*
|
305
|
-
|
306
|
-
* annotated_source_code returns an empty array so TemplateErrors without a
|
307
|
-
template in the backtrace are surfaced properly by DebugExceptions.
|
308
|
-
|
309
|
-
*Guilherme Mansur*, *Kasper Timm Hansen*
|
310
|
-
|
311
|
-
* Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
|
312
|
-
|
313
|
-
*Guilherme Mansur*, *Gannon McGibbon*
|
144
|
+
<%= form_for @post do |f| %>
|
145
|
+
<%= f.label :title %>
|
146
|
+
<%= f.text_field :title, aria: { describedby: f.field_id(:title, :error) } %>
|
147
|
+
<%= tag.span("is blank", id: f.field_id(:title, :error) %>
|
148
|
+
<% end %>
|
314
149
|
|
315
|
-
*
|
150
|
+
*Sean Doyle*
|
316
151
|
|
317
|
-
|
152
|
+
* Add `tag.attributes` to transform a Hash into HTML Attributes, ready to be
|
153
|
+
interpolated into ERB.
|
318
154
|
|
319
|
-
|
155
|
+
<input <%= tag.attributes(type: :text, aria: { label: "Search" }) %> >
|
156
|
+
# => <input type="text" aria-label="Search">
|
320
157
|
|
321
|
-
*
|
158
|
+
*Sean Doyle*
|
322
159
|
|
323
160
|
|
324
|
-
Please check [6-
|
161
|
+
Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actionview/CHANGELOG.md) for previous changes.
|
data/MIT-LICENSE
CHANGED
data/lib/action_view/base.rb
CHANGED
@@ -9,7 +9,7 @@ require "action_view/context"
|
|
9
9
|
require "action_view/template"
|
10
10
|
require "action_view/lookup_context"
|
11
11
|
|
12
|
-
module ActionView
|
12
|
+
module ActionView # :nodoc:
|
13
13
|
# = Action View Base
|
14
14
|
#
|
15
15
|
# Action View templates can be written in several ways.
|
@@ -179,7 +179,7 @@ module ActionView #:nodoc:
|
|
179
179
|
ActionView::Resolver.caching = value
|
180
180
|
end
|
181
181
|
|
182
|
-
def xss_safe?
|
182
|
+
def xss_safe? # :nodoc:
|
183
183
|
true
|
184
184
|
end
|
185
185
|
|
@@ -227,7 +227,7 @@ module ActionView #:nodoc:
|
|
227
227
|
|
228
228
|
# :startdoc:
|
229
229
|
|
230
|
-
def initialize(lookup_context, assigns, controller)
|
230
|
+
def initialize(lookup_context, assigns, controller) # :nodoc:
|
231
231
|
@_config = ActiveSupport::InheritableOptions.new
|
232
232
|
|
233
233
|
@lookup_context = lookup_context
|