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
attr_reader :user, :project, :issue_id
def process_details
if issue.confidential?
unpublish_details
else
publish_details
end
unpublish_details? ? unpublish_details : publish_details
end
def unpublish_details?
issue.confidential?
end
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