Commit b01eff0c authored by syasonik's avatar syasonik

Move publish check to its own method

parent 9955183f
......@@ -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