Method: FileAttachmentsController#destroy

Defined in:
app/controllers/file_attachments_controller.rb

#destroyObject



107
108
109
110
111
112
# File 'app/controllers/file_attachments_controller.rb', line 107

def destroy
  @file_attachment = FileAttachment.find(params[:id])
  @file_attachment.destroy
  flash[:notice] = "Deleted File: #{@file_attachment.name}"
  redirect_to_index_or_attachable
end