diff --git a/app/models/webpush_subscription.rb b/app/models/webpush_subscription.rb index 5169e87..cb31b02 100644 --- a/app/models/webpush_subscription.rb +++ b/app/models/webpush_subscription.rb @@ -26,7 +26,7 @@ class WebpushSubscription < ApplicationRecord private def normalize_urgency(urgency) - if URGENCY.includes? urgency.to_s + if URGENCY.include? urgency.to_s urgency.to_s else 'normal'