Last line can't be a comment
lagartoflojo opened this issue · 0 comments
lagartoflojo commented
A template like this:
name @child.name
# a comment on the last line
breaks with:
(...)/show.json.json_builder:3: syntax error, unexpected keyword_ensure, expecting '}'
(...)/show.json.json_builder:5: syntax error, unexpected keyword_end, expecting '}'
This does not happen if there's at least one empty line after the comment:
name @child.name
# a comment on the last line