aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/referentials_controller.rb')
-rw-r--r--app/controllers/referentials_controller.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index 09d990752..28a95c784 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -27,6 +27,15 @@ class ReferentialsController < BreadcrumbController
end
end
+ def archive
+ referential.archive!
+ redirect_to referential_path, notice: t('notice.referential.archived')
+ end
+ def unarchive
+ referential.unarchive!
+ redirect_to referential_path, notice: t('notice.referential.unarchived')
+ end
+
protected
alias_method :referential, :resource