actionview 5.1.7 → 5.2.0.beta1

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 (107) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +27 -275
  3. data/README.rdoc +1 -1
  4. data/lib/action_view.rb +3 -2
  5. data/lib/action_view/base.rb +8 -10
  6. data/lib/action_view/buffers.rb +2 -0
  7. data/lib/action_view/context.rb +2 -2
  8. data/lib/action_view/dependency_tracker.rb +2 -0
  9. data/lib/action_view/digestor.rb +6 -12
  10. data/lib/action_view/flows.rb +2 -0
  11. data/lib/action_view/gem_version.rb +5 -3
  12. data/lib/action_view/helpers.rb +2 -0
  13. data/lib/action_view/helpers/active_model_helper.rb +9 -3
  14. data/lib/action_view/helpers/asset_tag_helper.rb +79 -22
  15. data/lib/action_view/helpers/asset_url_helper.rb +13 -11
  16. data/lib/action_view/helpers/atom_feed_helper.rb +3 -1
  17. data/lib/action_view/helpers/cache_helper.rb +24 -14
  18. data/lib/action_view/helpers/capture_helper.rb +9 -7
  19. data/lib/action_view/helpers/controller_helper.rb +3 -1
  20. data/lib/action_view/helpers/csrf_helper.rb +4 -2
  21. data/lib/action_view/helpers/date_helper.rb +5 -3
  22. data/lib/action_view/helpers/debug_helper.rb +3 -1
  23. data/lib/action_view/helpers/form_helper.rb +43 -60
  24. data/lib/action_view/helpers/form_options_helper.rb +9 -7
  25. data/lib/action_view/helpers/form_tag_helper.rb +20 -11
  26. data/lib/action_view/helpers/javascript_helper.rb +5 -3
  27. data/lib/action_view/helpers/number_helper.rb +2 -0
  28. data/lib/action_view/helpers/output_safety_helper.rb +2 -0
  29. data/lib/action_view/helpers/record_tag_helper.rb +3 -1
  30. data/lib/action_view/helpers/rendering_helper.rb +4 -1
  31. data/lib/action_view/helpers/sanitize_helper.rb +3 -1
  32. data/lib/action_view/helpers/tag_helper.rb +2 -2
  33. data/lib/action_view/helpers/tags.rb +3 -1
  34. data/lib/action_view/helpers/tags/base.rb +12 -10
  35. data/lib/action_view/helpers/tags/check_box.rb +3 -1
  36. data/lib/action_view/helpers/tags/checkable.rb +4 -2
  37. data/lib/action_view/helpers/tags/collection_check_boxes.rb +2 -0
  38. data/lib/action_view/helpers/tags/collection_helpers.rb +2 -0
  39. data/lib/action_view/helpers/tags/collection_radio_buttons.rb +2 -0
  40. data/lib/action_view/helpers/tags/collection_select.rb +3 -1
  41. data/lib/action_view/helpers/tags/color_field.rb +3 -1
  42. data/lib/action_view/helpers/tags/date_field.rb +2 -0
  43. data/lib/action_view/helpers/tags/date_select.rb +3 -1
  44. data/lib/action_view/helpers/tags/datetime_field.rb +3 -1
  45. data/lib/action_view/helpers/tags/datetime_local_field.rb +2 -0
  46. data/lib/action_view/helpers/tags/datetime_select.rb +2 -0
  47. data/lib/action_view/helpers/tags/email_field.rb +2 -0
  48. data/lib/action_view/helpers/tags/file_field.rb +2 -0
  49. data/lib/action_view/helpers/tags/grouped_collection_select.rb +3 -1
  50. data/lib/action_view/helpers/tags/hidden_field.rb +2 -0
  51. data/lib/action_view/helpers/tags/label.rb +2 -4
  52. data/lib/action_view/helpers/tags/month_field.rb +2 -0
  53. data/lib/action_view/helpers/tags/number_field.rb +2 -0
  54. data/lib/action_view/helpers/tags/password_field.rb +2 -0
  55. data/lib/action_view/helpers/tags/placeholderable.rb +2 -0
  56. data/lib/action_view/helpers/tags/radio_button.rb +3 -1
  57. data/lib/action_view/helpers/tags/range_field.rb +2 -0
  58. data/lib/action_view/helpers/tags/search_field.rb +2 -0
  59. data/lib/action_view/helpers/tags/select.rb +5 -3
  60. data/lib/action_view/helpers/tags/tel_field.rb +2 -0
  61. data/lib/action_view/helpers/tags/text_area.rb +3 -1
  62. data/lib/action_view/helpers/tags/text_field.rb +3 -1
  63. data/lib/action_view/helpers/tags/time_field.rb +2 -0
  64. data/lib/action_view/helpers/tags/time_select.rb +2 -0
  65. data/lib/action_view/helpers/tags/time_zone_select.rb +3 -1
  66. data/lib/action_view/helpers/tags/translator.rb +2 -0
  67. data/lib/action_view/helpers/tags/url_field.rb +2 -0
  68. data/lib/action_view/helpers/tags/week_field.rb +2 -0
  69. data/lib/action_view/helpers/text_helper.rb +4 -2
  70. data/lib/action_view/helpers/translation_helper.rb +5 -4
  71. data/lib/action_view/helpers/url_helper.rb +24 -5
  72. data/lib/action_view/layouts.rb +7 -5
  73. data/lib/action_view/log_subscriber.rb +5 -3
  74. data/lib/action_view/lookup_context.rb +4 -4
  75. data/lib/action_view/model_naming.rb +2 -0
  76. data/lib/action_view/path_set.rb +2 -0
  77. data/lib/action_view/railtie.rb +11 -2
  78. data/lib/action_view/record_identifier.rb +2 -0
  79. data/lib/action_view/renderer/abstract_renderer.rb +2 -0
  80. data/lib/action_view/renderer/partial_renderer.rb +13 -11
  81. data/lib/action_view/renderer/partial_renderer/collection_caching.rb +4 -2
  82. data/lib/action_view/renderer/renderer.rb +2 -0
  83. data/lib/action_view/renderer/streaming_template_renderer.rb +3 -1
  84. data/lib/action_view/renderer/template_renderer.rb +2 -0
  85. data/lib/action_view/rendering.rb +3 -5
  86. data/lib/action_view/routing_url_for.rb +2 -0
  87. data/lib/action_view/tasks/cache_digests.rake +2 -0
  88. data/lib/action_view/template.rb +6 -4
  89. data/lib/action_view/template/error.rb +2 -3
  90. data/lib/action_view/template/handlers.rb +3 -1
  91. data/lib/action_view/template/handlers/builder.rb +3 -4
  92. data/lib/action_view/template/handlers/erb.rb +5 -9
  93. data/lib/action_view/template/handlers/erb/erubi.rb +2 -0
  94. data/lib/action_view/template/handlers/html.rb +2 -0
  95. data/lib/action_view/template/handlers/raw.rb +2 -0
  96. data/lib/action_view/template/html.rb +3 -1
  97. data/lib/action_view/template/resolver.rb +7 -6
  98. data/lib/action_view/template/text.rb +3 -1
  99. data/lib/action_view/template/types.rb +3 -1
  100. data/lib/action_view/test_case.rb +21 -5
  101. data/lib/action_view/testing/resolvers.rb +3 -1
  102. data/lib/action_view/version.rb +2 -0
  103. data/lib/action_view/view_paths.rb +3 -3
  104. data/lib/assets/compiled/rails-ujs.js +3 -3
  105. metadata +14 -15
  106. data/lib/action_view/template/handlers/erb/deprecated_erubis.rb +0 -9
  107. data/lib/action_view/template/handlers/erb/erubis.rb +0 -81
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 653bc5c6f534a3b66e9bc0517e1dae96591c0afc046eb4af21c2bfde0aa5436d
4
- data.tar.gz: 3f6ac20820ff6a4d61dcf499bff23acf931f3a6ea65822720f63e0e522f1b77d
2
+ SHA1:
3
+ metadata.gz: c934acdfba1e347532a218260fcdb7a2270b368d
4
+ data.tar.gz: 607d5d00fdf3f2f529789ffb93d332c7bf056db8
5
5
  SHA512:
6
- metadata.gz: c21cc5b6ec4a492a753325d9c732c9c8900ef7e07134bc259becbd040df51afd0ff3bb27141bcd9ac87c02537eae789161e7e5241f4bfadd230a29aabc3a36fa
7
- data.tar.gz: dcd3864b5a9216b19021272876564be5170b6d3e6af094a0a744517d01d89c58629156e6b4a87ebf593e37ae2478eb6687e9e923fe675d22d740e555ea91e64e
6
+ metadata.gz: 9fb6af6781f3581601deaf9157e9725b2fa1cb345c071dbe9bba8ca3dc51bc8af6a8271b3ab36ad4c1335684076e018e18acec7d5efd9db2d1ef65165da22068
7
+ data.tar.gz: d6bc2a0f3ef3f395e1dfb2ba5784f43e922796fd163f756bc6293279e2689cb8fc672590f56bea8c0836d652373df468ec8dd06f0b711fd5288baeff768b7896
data/CHANGELOG.md CHANGED
@@ -1,74 +1,42 @@
1
- ## Rails 5.1.7 (March 27, 2019) ##
1
+ ## Rails 5.2.0.beta1 (November 27, 2017) ##
2
2
 
3
- * Fix issue with `button_to`'s `to_form_params`
3
+ * Change `form_with` to generates ids by default.
4
4
 
5
- `button_to` was throwing exception when invoked with `params` hash that
6
- contains symbol and string keys. The reason for the exception was that
7
- `to_form_params` was comparing the given symbol and string keys.
5
+ When `form_with` was introduced we disabled the automatic generation of ids
6
+ that was enabled in `form_for`. This usually is not an good idea since labels don't work
7
+ when the input doesn't have an id and it made harder to test with Capybara.
8
8
 
9
- The issue is fixed by turning all keys to strings inside
10
- `to_form_params` before comparing them.
9
+ You can still disable the automatic generation of ids setting `config.action_view.form_with_generates_ids`
10
+ to `false.`
11
11
 
12
- *Georgi Georgiev*
12
+ *Nick Pezza*
13
13
 
14
- ## Rails 5.1.6.2 (March 11, 2019) ##
14
+ * Fix issues with `field_error_proc` wrapping `optgroup` and select divider `option`.
15
15
 
16
- * No changes.
16
+ Fixes #31088
17
17
 
18
+ *Matthias Neumayr*
18
19
 
19
- ## Rails 5.1.6.1 (November 27, 2018) ##
20
+ * Remove deprecated Erubis ERB handler.
20
21
 
21
- * No changes.
22
-
23
-
24
- ## Rails 5.1.6 (March 29, 2018) ##
25
-
26
- * No changes.
27
-
28
-
29
- ## Rails 5.1.5 (February 14, 2018) ##
30
-
31
- * No changes.
32
-
33
-
34
- ## Rails 5.1.4 (September 07, 2017) ##
35
-
36
- * No changes.
37
-
38
-
39
- ## Rails 5.1.4.rc1 (August 24, 2017) ##
40
-
41
- * No changes.
42
-
43
-
44
- ## Rails 5.1.3 (August 03, 2017) ##
45
-
46
- * No changes.
47
-
48
-
49
- ## Rails 5.1.3.rc3 (July 31, 2017) ##
50
-
51
- * No changes.
52
-
53
-
54
- ## Rails 5.1.3.rc2 (July 25, 2017) ##
22
+ *Rafael Mendonça França*
55
23
 
56
- * No changes.
24
+ * Remove default `alt` text generation.
57
25
 
26
+ Fixes #30096
58
27
 
59
- ## Rails 5.1.3.rc1 (July 19, 2017) ##
28
+ *Cameron Cundiff*
60
29
 
61
- * No changes.
30
+ * Add `srcset` option to `image_tag` helper.
62
31
 
32
+ *Roberto Miranda*
63
33
 
64
- ## Rails 5.1.2 (June 26, 2017) ##
34
+ * Fix issues with scopes and engine on `current_page?` method.
65
35
 
66
- * Fix issues with scopes and engine on `current_page?` method.
67
-
68
36
  Fixes #29401.
69
-
37
+
70
38
  *Nikita Savrov*
71
-
39
+
72
40
  * Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
73
41
 
74
42
  This makes sure that the labels are linked up with the fields.
@@ -77,230 +45,14 @@
77
45
 
78
46
  *Yuji Yaginuma*
79
47
 
80
- * Update distance_of_time_in_words helper to display better error messages
81
- for bad input.
82
-
83
- *Jay Hayes*
84
-
85
-
86
- ## Rails 5.1.1 (May 12, 2017) ##
87
-
88
- * No changes.
89
-
90
-
91
- ## Rails 5.1.0 (April 27, 2017) ##
92
-
93
- * Remove the option `encode_special_chars` misnomer from `strip_tags`
94
-
95
- As of rails-html-sanitizer v1.0.3, the sanitizer will ignore the
96
- `encode_special_chars` option.
97
-
98
- Fixes #28060.
99
-
100
- *Andrew Hood*
101
-
102
- * Change the ERB handler from Erubis to Erubi.
103
-
104
- Erubi is an Erubis fork that's svelte, simple, and currently maintained.
105
- Plus it supports `--enable-frozen-string-literal` in Ruby 2.3+.
106
-
107
- Compatibility: Drops support for `<%===` tags for debug output.
108
- These were an unused, undocumented side effect of the Erubis
109
- implementation.
110
-
111
- Deprecation: The Erubis handler will be removed in Rails 5.2, for the
112
- handful of folks using it directly.
113
-
114
- *Jeremy Evans*
115
-
116
- * Allow render locals to be assigned to instance variables in a view.
117
-
118
- Fixes #27480.
119
-
120
- *Andrew White*
121
-
122
- * Add `check_parameters` option to `current_page?` which makes it more strict.
123
-
124
- *Maksym Pugach*
125
-
126
- * Return correct object name in form helper method after `fields_for`.
127
-
128
- Fixes #26931.
129
-
130
- *Yuji Yaginuma*
131
-
132
- * Use `ActionView::Resolver.caching?` (`config.action_view.cache_template_loading`)
133
- to enable template recompilation.
134
-
135
- Before it was enabled by `consider_all_requests_local`, which caused
136
- recompilation in tests.
137
-
138
- *Max Melentiev*
48
+ * Add `:json` type to `auto_discovery_link_tag` to support [JSON Feeds](https://jsonfeed.org/version/1)
139
49
 
140
- * Add `form_with` to unify `form_tag` and `form_for` usage.
50
+ *Mike Gunderloy*
141
51
 
142
- Used like `form_tag` (where just the open tag is output):
143
-
144
- ```erb
145
- <%= form_with scope: :post, url: super_special_posts_path %>
146
- ```
147
-
148
- Used like `form_for`:
149
-
150
- ```erb
151
- <%= form_with model: @post do |form| %>
152
- <%= form.text_field :title %>
153
- <% end %>
154
- ```
155
-
156
- *Kasper Timm Hansen*, *Marek Kirejczyk*
157
-
158
- * Add `fields` form helper method.
159
-
160
- ```erb
161
- <%= fields :comment, model: @comment do |fields| %>
162
- <%= fields.text_field :title %>
163
- <% end %>
164
- ```
165
-
166
- Can also be used within form helpers such as `form_with`.
167
-
168
- *Kasper Timm Hansen*
169
-
170
- * Removed deprecated `#original_exception` in `ActionView::Template::Error`.
171
-
172
- *Rafael Mendonça França*
173
-
174
- * Render now accepts any keys for locals, including reserved keywords.
175
-
176
- Only locals with valid variable names get set directly. Others
177
- will still be available in `local_assigns`.
178
-
179
- Example of render with reserved keywords:
180
-
181
- ```erb
182
- <%= render "example", class: "text-center", message: "Hello world!" %>
183
-
184
- <!-- _example.html.erb: -->
185
- <%= tag.div class: local_assigns[:class] do %>
186
- <p><%= message %></p>
187
- <% end %>
188
- ```
189
-
190
- *Peter Schilling*, *Matthew Draper*
191
-
192
- * Add `:skip_pipeline` option to several asset tag helpers
193
-
194
- `javascript_include_tag`, `stylesheet_link_tag`, `favicon_link_tag`,
195
- `image_tag` and `audio_tag` now accept a `:skip_pipeline` option which can
196
- be set to true to bypass the asset pipeline and serve the assets from the
197
- public folder.
198
-
199
- *Richard Schneeman*
200
-
201
- * Add `:poster_skip_pipeline` option to the `video_tag` helper
202
-
203
- `video_tag` now accepts a `:poster_skip_pipeline` option which can be used
204
- in combination with the `:poster` option to bypass the asset pipeline and
205
- serve the poster image for the video from the public folder.
206
-
207
- *Richard Schneeman*
208
-
209
- * Show cache hits and misses when rendering partials.
210
-
211
- Partials using the `cache` helper will show whether a render hit or missed
212
- the cache:
213
-
214
- ```
215
- Rendered messages/_message.html.erb in 1.2 ms [cache hit]
216
- Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
217
- ```
218
-
219
- This removes the need for the old fragment cache logging:
220
-
221
- ```
222
- Read fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/d0bdf2974e1ef6d31685c3b392ad0b74 (0.6ms)
223
- Rendered messages/_message.html.erb in 1.2 ms [cache hit]
224
- Write fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/3b4e249ac9d168c617e32e84b99218b5 (1.1ms)
225
- Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
226
- ```
227
-
228
- Though that full output can be reenabled with
229
- `config.action_controller.enable_fragment_cache_logging = true`.
230
-
231
- *Stan Lo*
232
-
233
- * Changed partial rendering with a collection to allow collections which
234
- implement `to_a`.
235
-
236
- Extracting the collection option had an optimization to avoid unnecessary
237
- queries of ActiveRecord Relations by calling `#to_ary` on the given
238
- collection. Instances of `Enumerator` or `Enumerable` are valid
239
- collections, but they do not implement `#to_ary`. By changing this to
240
- `#to_a`, they will now be extracted and rendered as expected.
241
-
242
- *Steven Harman*
243
-
244
- * New syntax for tag helpers. Avoid positional parameters and support HTML5 by default.
245
- Example usage of tag helpers before:
246
-
247
- ```ruby
248
- tag(:br, nil, true)
249
- content_tag(:div, content_tag(:p, "Hello world!"), class: "strong")
250
-
251
- <%= content_tag :div, class: "strong" do -%>
252
- Hello world!
253
- <% end -%>
254
- ```
255
-
256
- Example usage of tag helpers after:
257
-
258
- ```ruby
259
- tag.br
260
- tag.div tag.p("Hello world!"), class: "strong"
261
-
262
- <%= tag.div class: "strong" do %>
263
- Hello world!
264
- <% end %>
265
- ```
266
-
267
- *Marek Kirejczyk*, *Kasper Timm Hansen*
268
-
269
- * Change `datetime_field` and `datetime_field_tag` to generate `datetime-local` fields.
270
-
271
- As a new specification of the HTML 5 the text field type `datetime` will no longer exist
272
- and it is recommended to use `datetime-local`.
273
- Ref: https://html.spec.whatwg.org/multipage/forms.html#local-date-and-time-state-(type=datetime-local)
274
-
275
- *Herminio Torres*
276
-
277
- * Raw template handler (which is also the default template handler in Rails 5) now outputs
278
- HTML-safe strings.
279
-
280
- In Rails 5 the default template handler was changed to the raw template handler. Because
281
- the ERB template handler escaped strings by default this broke some applications that
282
- expected plain JS or HTML files to be rendered unescaped. This fixes the issue caused
283
- by changing the default handler by changing the Raw template handler to output HTML-safe
284
- strings.
285
-
286
- *Eileen M. Uchitelle*
287
-
288
- * `select_tag`'s `include_blank` option for generation for blank option tag, now adds an empty space label,
289
- when the value as well as content for option tag are empty, so that we conform with html specification.
290
- Ref: https://www.w3.org/TR/html5/forms.html#the-option-element.
291
-
292
- Generation of option before:
293
-
294
- ```html
295
- <option value=""></option>
296
- ```
297
-
298
- Generation of option after:
52
+ * Update `distance_of_time_in_words` helper to display better error messages
53
+ for bad input.
299
54
 
300
- ```html
301
- <option value="" label=" "></option>
302
- ```
55
+ *Jay Hayes*
303
56
 
304
- *Vipul A M*
305
57
 
306
- Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/actionview/CHANGELOG.md) for previous changes.
58
+ Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actionview/CHANGELOG.md) for previous changes.
data/README.rdoc CHANGED
@@ -20,7 +20,7 @@ Source code can be downloaded as part of the Rails project on GitHub
20
20
 
21
21
  Action View is released under the MIT license:
22
22
 
23
- * http://www.opensource.org/licenses/MIT
23
+ * https://opensource.org/licenses/MIT
24
24
 
25
25
 
26
26
  == Support
data/lib/action_view.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  #--
2
4
  # Copyright (c) 2004-2017 David Heinemeier Hansson
3
5
  #
@@ -74,7 +76,6 @@ module ActionView
74
76
  autoload :MissingTemplate
75
77
  autoload :ActionViewError
76
78
  autoload :EncodingError
77
- autoload :MissingRequestError
78
79
  autoload :TemplateError
79
80
  autoload :WrongEncodingError
80
81
  end
@@ -92,5 +93,5 @@ end
92
93
  require "active_support/core_ext/string/output_safety"
93
94
 
94
95
  ActiveSupport.on_load(:i18n) do
95
- I18n.load_path << "#{File.dirname(__FILE__)}/action_view/locale/en.yml"
96
+ I18n.load_path << File.expand_path("action_view/locale/en.yml", __dir__)
96
97
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "active_support/core_ext/module/attr_internal"
2
4
  require "active_support/core_ext/module/attribute_accessors"
3
5
  require "active_support/ordered_options"
@@ -140,30 +142,25 @@ module ActionView #:nodoc:
140
142
  include Helpers, ::ERB::Util, Context
141
143
 
142
144
  # Specify the proc used to decorate input tags that refer to attributes with errors.
143
- cattr_accessor :field_error_proc
144
- @@field_error_proc = Proc.new { |html_tag, instance| "<div class=\"field_with_errors\">#{html_tag}</div>".html_safe }
145
+ cattr_accessor :field_error_proc, default: Proc.new { |html_tag, instance| "<div class=\"field_with_errors\">#{html_tag}</div>".html_safe }
145
146
 
146
147
  # How to complete the streaming when an exception occurs.
147
148
  # This is our best guess: first try to close the attribute, then the tag.
148
- cattr_accessor :streaming_completion_on_exception
149
- @@streaming_completion_on_exception = %("><script>window.location = "/500.html"</script></html>)
149
+ cattr_accessor :streaming_completion_on_exception, default: %("><script>window.location = "/500.html"</script></html>)
150
150
 
151
151
  # Specify whether rendering within namespaced controllers should prefix
152
152
  # the partial paths for ActiveModel objects with the namespace.
153
153
  # (e.g., an Admin::PostsController would render @post using /admin/posts/_post.erb)
154
- cattr_accessor :prefix_partial_path_with_controller_namespace
155
- @@prefix_partial_path_with_controller_namespace = true
154
+ cattr_accessor :prefix_partial_path_with_controller_namespace, default: true
156
155
 
157
156
  # Specify default_formats that can be rendered.
158
157
  cattr_accessor :default_formats
159
158
 
160
159
  # Specify whether an error should be raised for missing translations
161
- cattr_accessor :raise_on_missing_translations
162
- @@raise_on_missing_translations = false
160
+ cattr_accessor :raise_on_missing_translations, default: false
163
161
 
164
162
  # Specify whether submit_tag should automatically disable on click
165
- cattr_accessor :automatically_disable_submit_tag
166
- @@automatically_disable_submit_tag = true
163
+ cattr_accessor :automatically_disable_submit_tag, default: true
167
164
 
168
165
  class_attribute :_routes
169
166
  class_attribute :logger
@@ -207,6 +204,7 @@ module ActionView #:nodoc:
207
204
  @view_renderer = ActionView::Renderer.new(lookup_context)
208
205
  end
209
206
 
207
+ @cache_hit = {}
210
208
  assign(assigns)
211
209
  assign_controller(controller)
212
210
  _prepare_context
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "active_support/core_ext/string/output_safety"
2
4
 
3
5
  module ActionView
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActionView
2
4
  module CompiledTemplates #:nodoc:
3
5
  # holds compiled template code
@@ -17,7 +19,6 @@ module ActionView
17
19
  attr_accessor :output_buffer, :view_flow
18
20
 
19
21
  # Prepares the context by setting the appropriate instance variables.
20
- # :api: plugin
21
22
  def _prepare_context
22
23
  @view_flow = OutputFlow.new
23
24
  @output_buffer = nil
@@ -27,7 +28,6 @@ module ActionView
27
28
  # Encapsulates the interaction with the view flow so it
28
29
  # returns the correct buffer on +yield+. This is usually
29
30
  # overwritten by helpers to add more behavior.
30
- # :api: plugin
31
31
  def _layout_for(name = nil)
32
32
  name ||= :layout
33
33
  view_flow.get(name).html_safe