diff options
| author | Teddy Wing | 2017-06-19 17:31:20 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-06-19 17:42:05 +0200 | 
| commit | 1f569d51d82f741811b36080df47bde94c3ad58c (patch) | |
| tree | 625cbf4ff9b7a0c7634178b3a074b5ae62b0014d /app/decorators | |
| parent | 9de20c519a60443157ed277a1c68b46f00229598 (diff) | |
| download | chouette-core-1f569d51d82f741811b36080df47bde94c3ad58c.tar.bz2 | |
LineDecorator: Remove unused link
This link was brought in from the "time_tables/show.html.slim" template
when I ported the links over to `LineDecorator#action_links`. The link
was wrapped in an `if false` from
5bd3973fae2c1e02c2bef31d5b12dc10b1a133c9. Presumably we no longer care
about that edit link, so since the code never executes, I'm deleting it.
Refs #3479
Diffstat (limited to 'app/decorators')
| -rw-r--r-- | app/decorators/line_decorator.rb | 5 | 
1 files changed, 0 insertions, 5 deletions
diff --git a/app/decorators/line_decorator.rb b/app/decorators/line_decorator.rb index 53053ed2c..d4a616a97 100644 --- a/app/decorators/line_decorator.rb +++ b/app/decorators/line_decorator.rb @@ -28,11 +28,6 @@ class LineDecorator < Draper::Decorator        )      end -    # TODO: what if false? do we delete this? -    if false && h.policy(object).update? -      # = link_to t('lines.actions.edit'), edit_line_referential_line_path(context[:line_referential], object), class: 'btn btn-primary' -    end -      if h.policy(object).destroy?        links << Link.new(          content: h.destroy_link_content('lines.actions.destroy_confirm'),  | 
