aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2018-04-18 14:34:34 +0200
committerGitHub2018-04-18 14:34:34 +0200
commitfe3c330cacef3d4367c9a051e3858551986b2c14 (patch)
treebe4cd21aa549547093d55d6a5679666f0bdfb243
parentafab5aa87cee66e27d99a29c12c735edba5629ae (diff)
parente48ce179ed55b3a57ab494c63468c4c19aa249fc (diff)
downloadchouette-core-fe3c330cacef3d4367c9a051e3858551986b2c14.tar.bz2
Merge pull request #495 from af83/6506-lines-index--remove-new-line-link-from-cog-menu--rb2018
6506 Lines#index: Remove 'new' link in cog menu
-rw-r--r--app/decorators/line_decorator.rb5
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