summaryrefslogtreecommitdiff
path: root/app/models/service_desk/custom_email_verification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/service_desk/custom_email_verification.rb')
-rw-r--r--app/models/service_desk/custom_email_verification.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/service_desk/custom_email_verification.rb b/app/models/service_desk/custom_email_verification.rb
index 69bd0f5e7f8..482a10447ed 100644
--- a/app/models/service_desk/custom_email_verification.rb
+++ b/app/models/service_desk/custom_email_verification.rb
@@ -77,6 +77,13 @@ module ServiceDesk
verification.error = error
verification.token = nil
end
+
+ # Supress warning:
+ # both enum and its state_machine have defined a different default for "state".
+ # State machine uses `nil` and the enum should use the same.
+ def owner_class_attribute_default
+ nil
+ end
end
# Needs to be below `state_machine` definition to suppress