File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def render_in(view_context, &block)
135135 @__vc_content_evaluated = false
136136 @__vc_render_in_block = block
137137
138- if self . class . send ( : __vc_content_is_a_slot?)
138+ if self . class . __vc_content_is_a_slot?
139139 @__vc_content_evaluated = true
140140 if __vc_render_in_block_provided?
141141 view_context . capture ( self , &@__vc_render_in_block )
@@ -676,6 +676,11 @@ def __vc_iteration_argument_present?
676676 __vc_initialize_parameter_names . include? ( __vc_collection_iteration_parameter )
677677 end
678678
679+ # @private
680+ def __vc_content_is_a_slot?
681+ defined? ( @__vc_content_is_a_slot ) && @__vc_content_is_a_slot
682+ end
683+
679684 private
680685
681686 def __vc_splatted_keyword_argument_present?
@@ -699,10 +704,6 @@ def __vc_provided_collection_parameter
699704 @__vc_provided_collection_parameter ||= nil
700705 end
701706
702- def __vc_content_is_a_slot?
703- defined? ( @__vc_content_is_a_slot ) && @__vc_content_is_a_slot
704- end
705-
706707 def content_is_a_slot!
707708 @__vc_content_is_a_slot = true
708709 renders_one :content
You can’t perform that action at this time.
0 commit comments