diff --git a/lib/dfe/analytics.rb b/lib/dfe/analytics.rb index a271875..6d31d4b 100644 --- a/lib/dfe/analytics.rb +++ b/lib/dfe/analytics.rb @@ -79,15 +79,15 @@ def self.enabled? end def self.allowlist - Rails.application.config_for(:analytics) + @allowlist ||= Rails.application.config_for(:analytics) end def self.allowlist_pii - Rails.application.config_for(:analytics_pii) + @allowlist_pii ||= Rails.application.config_for(:analytics_pii) end def self.blocklist - Rails.application.config_for(:analytics_blocklist) + @blocklist ||= Rails.application.config_for(:analytics_blocklist) end def self.environment