File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,11 @@ module RenderLiteralHelpers
2929 PATTERN
3030
3131 def_node_matcher :render_view_component_instance_with_content? , <<-PATTERN
32- (send nil? {:render :render_to_string} (block (send (send _ :new ...) `:with_content ...) ...))
32+ (send nil? {:render :render_to_string} (send (send _ :new ...) `:with_content ...))
33+ PATTERN
34+
35+ def_node_matcher :render_view_component_instance_with_inline_block? , <<-PATTERN
36+ (send nil? {:render :render_to_string} (block (send (send _ :new ...) ...) ...))
3337 PATTERN
3438
3539 def_node_matcher :render_view_component_collection? , <<-PATTERN
@@ -47,6 +51,7 @@ def hash_with_literal_keys?(hash)
4751
4852 def render_view_component? ( node )
4953 render_view_component_instance_with_content? ( node ) ||
54+ render_view_component_instance_with_inline_block? ( node ) ||
5055 render_view_component_instance? ( node ) ||
5156 render_view_component_collection? ( node )
5257 end
You can’t perform that action at this time.
0 commit comments