From d7271b899fb121165697f8574e8785d01d4ca487 Mon Sep 17 00:00:00 2001 From: Developer <> Date: Fri, 19 Feb 2021 11:05:30 -0500 Subject: [PATCH] Fixed issue with account.rb for spam_flag to include nil by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fixed: - issue with account.rb for spam_flag to include nil by default Was causing failure to account sign up where new values are nil and the validation failed because it expected 0,1,2 values. --- app/models/account.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/account.rb b/app/models/account.rb index 6ef1aed9..f47eae2f 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -70,7 +70,7 @@ class Account < ApplicationRecord include DomainNormalizable SPAM_FLAG_CLASS_MAP = { - none: 0, + none: nil, spam: 1, safe: 2, }.freeze