aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/newapplication_helper.rb
diff options
context:
space:
mode:
authorjpl2017-02-09 16:28:44 +0100
committerjpl2017-02-09 16:28:44 +0100
commitee5f500ff832dac67be81875cf98db0cce4677af (patch)
tree085f72ddce12fb2d56d96042df4b959b050e35ca /app/helpers/newapplication_helper.rb
parentc9c42f71e881ad279471f08cbb37ae077823d467 (diff)
downloadchouette-core-ee5f500ff832dac67be81875cf98db0cce4677af.tar.bz2
Refs #2550: updating flash msgs, fixing referential archive links on views
Diffstat (limited to 'app/helpers/newapplication_helper.rb')
-rw-r--r--app/helpers/newapplication_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb
index e4e0c31a3..42d21105a 100644
--- a/app/helpers/newapplication_helper.rb
+++ b/app/helpers/newapplication_helper.rb
@@ -138,11 +138,11 @@ module NewapplicationHelper
end
elsif action == :archive
unless item.archived?
- content_tag :li, link_to(t("actions.#{action}"), polymorph_url)
+ content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put)
end
elsif action == :unarchive
if item.archived?
- content_tag :li, link_to(t("actions.#{action}"), polymorph_url)
+ content_tag :li, link_to(t("actions.#{action}"), polymorph_url, method: :put)
end
else
content_tag :li, link_to(t("actions.#{action}"), polymorph_url)