Added destroy method
This commit is contained in:
parent
699968ba25
commit
8a2d0df7e5
|
@ -67,6 +67,12 @@ class Admin::ArchiveFilesController < OrbitAdminController
|
|||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
archive_file = ArchiveFile.find(params[:id])
|
||||
archive_file.destroy
|
||||
redirect_to admin_archive_files_path
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def archive_vars
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
$("#<%= dom_id @archive_file %>").remove();
|
Loading…
Reference in New Issue