json.revise_reason @last_atta.try(:description) json.atta_update_time @last_atta.try(:created_on) json.atta_update_user @is_evaluation ? "匿名" : @last_atta.try(:author).try(:real_name) json.atta_update_user_login @is_evaluation ? "--" : @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