Commit 62810d8c authored by Vitali Tatarintev's avatar Vitali Tatarintev

Rename fallback to fallback_message

Rename method to fallback_message in SlashCommands for readability
parent 1b8869ef
......@@ -92,7 +92,7 @@ module Gitlab
title_link: resource_url,
author_name: author.name,
author_icon: author.avatar_url,
fallback: fallback,
fallback: fallback_message,
pretext: custom_pretext,
text: text,
color: color(resource),
......
......@@ -20,7 +20,7 @@ module Gitlab
private
def fallback
def fallback_message
"Closed issue #{issue.to_reference}: #{issue.title}"
end
......
......@@ -12,7 +12,7 @@ module Gitlab
private
def fallback
def fallback_message
"New comment on #{issue.to_reference}: #{issue.title}"
end
......
......@@ -22,7 +22,7 @@ module Gitlab
response_message(custom_pretext: custom_pretext(old_issue))
end
def fallback
def fallback_message
"Issue #{issue.to_reference}: #{issue.title}"
end
......
......@@ -12,7 +12,7 @@ module Gitlab
private
def fallback
def fallback_message
"New issue #{issue.to_reference}: #{issue.title}"
end
......
......@@ -16,7 +16,7 @@ module Gitlab
private
def fallback
def fallback_message
"Issue #{resource.to_reference}: #{resource.title}"
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment