Skip to content

Commit

Permalink
fix cacahe implementatation to work with all methods
Browse files Browse the repository at this point in the history
  • Loading branch information
reeganviljoen committed Oct 15, 2024
1 parent 467797a commit 2b92128
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
4 changes: 1 addition & 3 deletions lib/view_component/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def config

attr_accessor :__vc_original_view_context

# TODO
# Compoents can have a cache key that is used to cache the rendered output.
#
# @return [String]
def cache_key
Expand Down Expand Up @@ -333,8 +333,6 @@ def __vc_render_in_block_provided?
defined?(@view_context) && @view_context && @__vc_render_in_block
end


# TODO
def __vc_render_template(rendered_template)
# Avoid allocating new string when output_preamble and output_postamble are blank
if output_preamble.blank? && output_postamble.blank?
Expand Down
27 changes: 0 additions & 27 deletions lib/view_component/cache_on.rb

This file was deleted.

0 comments on commit 2b92128

Please sign in to comment.