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
29
29
PATTERN
30
30
31
31
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 ...) ...) ...))
33
37
PATTERN
34
38
35
39
def_node_matcher :render_view_component_collection? , <<-PATTERN
@@ -47,6 +51,7 @@ def hash_with_literal_keys?(hash)
47
51
48
52
def render_view_component? ( node )
49
53
render_view_component_instance_with_content? ( node ) ||
54
+ render_view_component_instance_with_inline_block? ( node ) ||
50
55
render_view_component_instance? ( node ) ||
51
56
render_view_component_collection? ( node )
52
57
end
You can’t perform that action at this time.
0 commit comments