Class: ApplicationSettings::UpdateService

Inherits:
BaseService show all
Includes:
ValidatesClassificationLabel
Defined in:
app/services/application_settings/update_service.rb

Constant Summary collapse

MARKDOWN_CACHE_INVALIDATING_PARAMS =
%w[asset_proxy_enabled asset_proxy_url asset_proxy_secret_key asset_proxy_whitelist].freeze

Instance Attribute Summary collapse

Attributes inherited from BaseService

#current_user, #project

Instance Method Summary collapse

Methods included from ValidatesClassificationLabel

#classification_label_change?, #rejection_reason_for_label, #validate_classification_label

Methods inherited from BaseService

#initialize

Methods inherited from BaseService

#initialize

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

This class inherits a constructor from ApplicationSettings::BaseService

Instance Attribute Details

#application_settingObject (readonly)

Returns the value of attribute application_setting.



7
8
9
# File 'app/services/application_settings/update_service.rb', line 7

def application_setting
  @application_setting
end

#paramsObject (readonly)

Returns the value of attribute params.



7
8
9
# File 'app/services/application_settings/update_service.rb', line 7

def params
  @params
end

Instance Method Details

#executeObject



11
12
13
14
15
16
17
# File 'app/services/application_settings/update_service.rb', line 11

def execute
  result = update_settings

  auto_approve_blocked_users if result

  result
end