You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/competitions/competitions/informs.json.jbuilder

6 lines
216 B

json.informs @informs.each do |inform|
json.(inform, :id, :name, :description)
json.attachments inform.attachments do |atta|
json.partial! "attachments/attachment_simple", locals: {attachment: atta}
end
end