Skip to content

Commit 1e40dab

Browse files
myabcclaude
andcommitted
Add default rows method to RowGroup base class
Prevents NoMethodError when RowGroup is instantiated directly, since render? calls rows.any?. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a607f93 commit 1e40dab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/components/primer/open_project/table/row_group.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ def initialize(**system_arguments)
1515
@system_arguments[:role] = :rowgroup
1616
end
1717

18+
def rows
19+
[]
20+
end
21+
1822
def render?
1923
rows.any? || content?
2024
end

0 commit comments

Comments
 (0)