summaryrefslogtreecommitdiff
path: root/lib/gitlab/chat_commands/base_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/chat_commands/base_command.rb')
-rw-r--r--lib/gitlab/chat_commands/base_command.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/chat_commands/base_command.rb b/lib/gitlab/chat_commands/base_command.rb
index 25da8474e95..156bb826f86 100644
--- a/lib/gitlab/chat_commands/base_command.rb
+++ b/lib/gitlab/chat_commands/base_command.rb
@@ -42,6 +42,10 @@ module Gitlab
def find_by_iid(iid)
collection.find_by(iid: iid)
end
+
+ def presenter
+ Gitlab::ChatCommands::Presenter.new(params[:presenter_format])
+ end
end
end
end