Add the ability to destroy a local census record

This commit is contained in:
Senén Rodero Rodríguez
2019-05-08 19:57:37 +02:00
committed by Javi Martín
parent a8a3f334ce
commit c72f4bfabf
4 changed files with 26 additions and 1 deletions

View File

@@ -25,6 +25,12 @@ class Admin::LocalCensusRecordsController < Admin::BaseController
end
end
def destroy
@local_census_record.destroy
redirect_to admin_local_census_records_path,
notice: t("admin.local_census_records.destroy.notice")
end
private
def local_census_record_params