Commit b01eff0c authored by syasonik's avatar syasonik

Move publish check to its own method

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