diff options
| author | Teddy Wing | 2018-04-17 14:49:39 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2018-04-17 15:59:35 +0200 | 
| commit | e48ce179ed55b3a57ab494c63468c4c19aa249fc (patch) | |
| tree | a55942c6184b2494f4c1a140f3bd06820713cd67 | |
| parent | 1da7c1caf8f3bab86cc4c5095d75c1d60e603759 (diff) | |
| download | chouette-core-e48ce179ed55b3a57ab494c63468c4c19aa249fc.tar.bz2 | |
Lines#index: Remove 'new' link in cog menu6506-lines-index--remove-new-line-link-from-cog-menu--rb2018
We had been adding a 'new line' link in this menu below 'show' and
'edit'. But having this link here doesn't make any sense because the
menu refers to a single object. Must have slipped through the cracks in
the new decorator conversion.
Refs #6506
| -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 0e7b6b9ae..077978c36 100644 --- a/app/decorators/line_decorator.rb +++ b/app/decorators/line_decorator.rb @@ -35,11 +35,6 @@ class LineDecorator < AF83::Decorator        edit_action_link do |l|          l.content {|l| l.primary? ? h.t('actions.edit') : h.t('lines.actions.edit') }        end - -      action_link on: :index, secondary: :index do |l| -        l.content t('lines.actions.new') -        l.href    { h.new_line_referential_line_path(context[:line_referential]) } -      end      end      ### the option :policy will automatically check for the corresponding method | 
