forgeplus/app/views/versions/edit.json.jbuilder

6 lines
274 B
Ruby

json.partial! "commons/success"
json.extract! @version, :id,:name,:project_id,:description, :effective_date, :status, :sharing,:wiki_page_title
json.attachmets @version.attachments.each do |atta|
json.partial! "attachments/attachment_small", locals: {attachment: atta}
end