Class: ErrorTracking::ClientKey
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ErrorTracking::ClientKey
- Defined in:
- app/models/error_tracking/client_key.rb
Constant Summary
Constants inherited from ApplicationRecord
Constants included from ResetOnUnionError
ResetOnUnionError::MAX_RESET_PERIOD
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ApplicationRecord
cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
Methods included from SensitiveSerializableHash
Class Method Details
.find_by_public_key(key) ⇒ Object
14 15 16 |
# File 'app/models/error_tracking/client_key.rb', line 14 def self.find_by_public_key(key) find_by(public_key: key) end |
Instance Method Details
#sentry_dsn ⇒ Object
18 19 20 |
# File 'app/models/error_tracking/client_key.rb', line 18 def sentry_dsn @sentry_dsn ||= ::Gitlab::ErrorTracking::ErrorRepository.build(project).dsn_url(public_key) end |