summaryrefslogtreecommitdiff
path: root/app/models/alert_management/http_integration.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/alert_management/http_integration.rb')
-rw-r--r--app/models/alert_management/http_integration.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/alert_management/http_integration.rb b/app/models/alert_management/http_integration.rb
index 0c916c576cb..2d9a2d7031c 100644
--- a/app/models/alert_management/http_integration.rb
+++ b/app/models/alert_management/http_integration.rb
@@ -52,6 +52,10 @@ module AlertManagement
endpoint_identifier == LEGACY_IDENTIFIER
end
+ def token_changed?
+ attribute_changed?(:token)
+ end
+
# Blank token assignment triggers token reset
def prevent_token_assignment
if token.present? && token_changed?