We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3bf91 commit 208eb01Copy full SHA for 208eb01
lib/view_component/base.rb
@@ -50,7 +50,7 @@ def config
50
51
attr_accessor :__vc_original_view_context
52
53
- # TODO
+ # Compoents can have a cache key that is used to cache the rendered output.
54
#
55
# @return [String]
56
def cache_key
@@ -333,8 +333,6 @@ def __vc_render_in_block_provided?
333
defined?(@view_context) && @view_context && @__vc_render_in_block
334
end
335
336
-
337
338
def __vc_render_template(rendered_template)
339
# Avoid allocating new string when output_preamble and output_postamble are blank
340
if output_preamble.blank? && output_postamble.blank?
lib/view_component/cache_on.rb
0 commit comments