Commit ccf4d2e5 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'sy-move-publish-check' into 'master'

Move publish check to its own method

See merge request gitlab-org/gitlab!31381
parents f6c40a9e b01eff0c
...@@ -35,11 +35,11 @@ module StatusPage ...@@ -35,11 +35,11 @@ module StatusPage
attr_reader :user, :project, :issue_id attr_reader :user, :project, :issue_id
def process_details def process_details
if issue.confidential? unpublish_details? ? unpublish_details : publish_details
unpublish_details end
else
publish_details def unpublish_details?
end issue.confidential?
end end
def process_list def process_list
......
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