diff options
| author | Zog | 2017-12-19 16:10:15 +0100 |
|---|---|---|
| committer | Zog | 2017-12-19 16:10:15 +0100 |
| commit | 4b9eebda5bb81a214c87351c01c720c0cb0cf2e8 (patch) | |
| tree | b82f4c685bef58509b5649559d2519f8791849ba /app | |
| parent | 4983eca8f4be6acf00589d4d34e7dc17377bb070 (diff) | |
| download | chouette-core-4b9eebda5bb81a214c87351c01c720c0cb0cf2e8.tar.bz2 | |
Refs #5287; Uniformize actions5287-clean-links-in-stop-areas-index
Diffstat (limited to 'app')
| -rw-r--r-- | app/decorators/stop_area_decorator.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/decorators/stop_area_decorator.rb b/app/decorators/stop_area_decorator.rb index 4e777292d..8b2ebf490 100644 --- a/app/decorators/stop_area_decorator.rb +++ b/app/decorators/stop_area_decorator.rb @@ -7,15 +7,6 @@ class StopAreaDecorator < Draper::Decorator links = [] stop_area ||= object - if h.policy(Chouette::StopArea).new? - links << Link.new( - content: h.t('stop_areas.actions.new'), - href: h.new_stop_area_referential_stop_area_path( - stop_area.stop_area_referential - ) - ) - end - if h.policy(stop_area).update? links << Link.new( content: h.t('stop_areas.actions.edit'), |
