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/graduation_works/supply_attachments.json.jbu...

8 lines
403 B

json.revise_reason @last_atta.try(:description)
json.atta_update_time @last_atta.try(:created_on)
json.atta_update_user @last_atta.try(:author).try(:real_name)
json.atta_update_user_login @last_atta.try(:author).try(:login)
json.revise_attachments @revise_attachments.each do |atta|
json.partial! "attachments/attachment_simple", locals: {attachment: atta, delete: @work.delete_atta(atta)}
end