aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2017-12-20 14:25:34 +0100
committerAlban Peignier2017-12-21 21:19:27 +0100
commit4be4d378d15ad24c8ca0cd43befb25d94cd093de (patch)
tree5660c31a263a7a71d4bdb4bb68159b9479ca8a00
parentcb0dd3864b468914462432eaf264647ba301b336 (diff)
downloadchouette-core-4be4d378d15ad24c8ca0cd43befb25d94cd093de.tar.bz2
Refs #5340 @O.1h; Remove deletion link for lines ...5340-deactivate-lines
... In Referential#show
-rw-r--r--app/decorators/referential_line_decorator.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/app/decorators/referential_line_decorator.rb b/app/decorators/referential_line_decorator.rb
index 654f68bf5..dceb3e2a9 100644
--- a/app/decorators/referential_line_decorator.rb
+++ b/app/decorators/referential_line_decorator.rb
@@ -24,15 +24,6 @@ class ReferentialLineDecorator < Draper::Decorator
)
)
- if h.policy(object).destroy?
- links << Link.new(
- content: h.destroy_link_content('actions.destroy'),
- href: h.referential_line_path(context[:referential], object),
- method: :delete,
- data: { confirm: t('lines.actions.destroy_confirm') }
- )
- end
-
if !object.hub_restricted? ||
(object.hub_restricted? && object.routes.size < 2)
if h.policy(Chouette::Route).create? &&