Use project helper instead of helper patch

This commit is contained in:
Alexander Meindl
2018-07-27 19:49:36 +02:00
parent f670a44c66
commit 4f5868cc57
4 changed files with 20 additions and 32 deletions

View File

@@ -0,0 +1,14 @@
module MessengerProjectsHelper
def project_settings_tabs
tabs = super
if User.current.allowed_to?(:manage_messenger, @project)
tabs << { name: 'messenger',
action: :show,
partial: 'messenger_settings/show',
label: :label_messenger }
end
tabs
end
end