Class: Collavre::IntegrationSetting
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ApplicationRecord
- Collavre::IntegrationSetting
- Defined in:
- app/models/collavre/integration_setting.rb
Overview
Stores externally-configurable integration secrets (Slack, Google OAuth, AWS S3/SES, FCM, etc.) on a per-key basis with ‘value` encrypted at rest.
Distinct from SystemSetting, which stores unencrypted app-behavior toggles (rate limits, themes, etc.). Pair with Collavre::IntegrationSettings::Registry (key definitions) and Collavre::IntegrationSettings::Resolver (DB > ENV > default precedence).
Class Method Summary collapse
Class Method Details
.cache_key_for(key) ⇒ Object
21 22 23 |
# File 'app/models/collavre/integration_setting.rb', line 21 def self.cache_key_for(key) "collavre/integration_setting/#{key}" end |