This commit is contained in:
2008-03-07 10:36:03 -07:00
parent 6c1c114d5e
commit c02edf7554
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ class AttachmentsController < ApplicationController
@attachment = Attachment.find_with_deleted(params[:id])
@attachment.update_attribute(:deleted_at, nil)
flash[:notice] = 'Attachment restored'[]
AttachmentRestoreLogEntry.create!(:target_id => @attachment.id, :user => @current_user, :course => @course)
AttachmentRestoreLogEntry.create!(:target_id => @attachment.id, :user => @current_user, :course => @attachment.course)
redirect_to course_attachment_url(@attachment.course, @attachment)
end