Skip to content

Commit 2e80a6b

Browse files
committed
Fix yield_content error
1 parent 293a87e commit 2e80a6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/generators/superform/install/templates

lib/generators/superform/install/templates/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def row(component)
1212
def around_template(&)
1313
super do
1414
error_messages
15-
yield
15+
yield if block_given?
1616
submit
1717
end
1818
end
@@ -30,4 +30,4 @@ def error_messages
3030
end
3131
end
3232
end
33-
end
33+
end

0 commit comments

Comments
 (0)