Closed shunwen closed 1 year ago
It seems like this should be reopened and fixed as mentioned in the SO answer, i.e adding a semicolon at the end of this line: https://github.com/rails/jbuilder/blob/v2.11.5/lib/jbuilder/jbuilder_template.rb#L277
Especially since Rubocop will suggest removing the hash value if repeated as in the last example
I have this line in jbuilder template using the new hash syntax. It seems this line is not executed at all.
It works if I modify the line back to the old syntax or add braces or brackets.
Could anyone help to explain what happens here? Is it something related to the template compilation? Thanks.