summaryrefslogtreecommitdiff
path: root/lib/gitlab/slash_commands/application_help.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/slash_commands/application_help.rb')
-rw-r--r--lib/gitlab/slash_commands/application_help.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/gitlab/slash_commands/application_help.rb b/lib/gitlab/slash_commands/application_help.rb
index 0ea7554ba64..1a92346be15 100644
--- a/lib/gitlab/slash_commands/application_help.rb
+++ b/lib/gitlab/slash_commands/application_help.rb
@@ -3,12 +3,15 @@
module Gitlab
module SlashCommands
class ApplicationHelp < BaseCommand
- def initialize(params)
+ def initialize(project, params)
+ @project = project
@params = params
end
def execute
- Gitlab::SlashCommands::Presenters::Help.new(commands).present(trigger, params[:text])
+ Gitlab::SlashCommands::Presenters::Help
+ .new(project, commands)
+ .present(trigger, params[:text])
end
private