Module: IncidentManagement::Settings

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Instance Method Details

#auto_close_incident?Boolean

Returns:

  • (Boolean)

20
21
22
# File 'app/services/concerns/incident_management/settings.rb', line 20

def auto_close_incident?
  incident_management_setting.auto_close_incident?
end

#incident_management_settingObject


9
10
11
12
13
14
# File 'app/services/concerns/incident_management/settings.rb', line 9

def incident_management_setting
  strong_memoize(:incident_management_setting) do
    project.incident_management_setting ||
      project.build_incident_management_setting
  end
end

#process_issues?Boolean

Returns:

  • (Boolean)

16
17
18
# File 'app/services/concerns/incident_management/settings.rb', line 16

def process_issues?
  incident_management_setting.create_issue?
end