Class: API::Entities::ApplicationSetting

Inherits:
Grape::Entity
  • Object
show all
Defined in:
lib/api/entities/application_setting.rb

Class Method Summary collapse

Class Method Details

.exposed_attributesObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/api/entities/application_setting.rb', line 6

def self.exposed_attributes
  attributes = ::ApplicationSettingsHelper.visible_attributes
  attributes.delete(:performance_bar_allowed_group_path)
  attributes.delete(:performance_bar_enabled)
  attributes.delete(:allow_local_requests_from_hooks_and_services)

  # let's not expose the secret key in a response
  attributes.delete(:asset_proxy_secret_key)
  attributes.delete(:eks_secret_access_key)

  attributes
end