blob: 93dfd6a306d3b9879a8ca35f0cb9bf797ec8bbd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# frozen_string_literal: true
module IncidentManagement
module Settings
include Gitlab::Utils::StrongMemoize
delegate :send_email?, to: :incident_management_setting
def incident_management_setting
strong_memoize(:incident_management_setting) do
project.incident_management_setting ||
project.build_incident_management_setting
end
end
def process_issues?
incident_management_setting.create_issue?
end
def auto_close_incident?
incident_management_setting.auto_close_incident?
end
end
end
|