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 ...@@ -92,7 +92,7 @@ module Gitlab
title_link: resource_url, title_link: resource_url,
author_name: author.name, author_name: author.name,
author_icon: author.avatar_url, author_icon: author.avatar_url,
fallback: fallback, fallback: fallback_message,
pretext: custom_pretext, pretext: custom_pretext,
text: text, text: text,
color: color(resource), color: color(resource),
......
...@@ -20,7 +20,7 @@ module Gitlab ...@@ -20,7 +20,7 @@ module Gitlab
private private
def fallback def fallback_message
"Closed issue #{issue.to_reference}: #{issue.title}" "Closed issue #{issue.to_reference}: #{issue.title}"
end end
......
...@@ -12,7 +12,7 @@ module Gitlab ...@@ -12,7 +12,7 @@ module Gitlab
private private
def fallback def fallback_message
"New comment on #{issue.to_reference}: #{issue.title}" "New comment on #{issue.to_reference}: #{issue.title}"
end end
......
...@@ -22,7 +22,7 @@ module Gitlab ...@@ -22,7 +22,7 @@ module Gitlab
response_message(custom_pretext: custom_pretext(old_issue)) response_message(custom_pretext: custom_pretext(old_issue))
end end
def fallback def fallback_message
"Issue #{issue.to_reference}: #{issue.title}" "Issue #{issue.to_reference}: #{issue.title}"
end end
......
...@@ -12,7 +12,7 @@ module Gitlab ...@@ -12,7 +12,7 @@ module Gitlab
private private
def fallback def fallback_message
"New issue #{issue.to_reference}: #{issue.title}" "New issue #{issue.to_reference}: #{issue.title}"
end end
......
...@@ -16,7 +16,7 @@ module Gitlab ...@@ -16,7 +16,7 @@ module Gitlab
private private
def fallback def fallback_message
"Issue #{resource.to_reference}: #{resource.title}" "Issue #{resource.to_reference}: #{resource.title}"
end 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