Commit d7271b89 authored by Developer's avatar Developer

Fixed issue with account.rb for spam_flag to include nil by default

• 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.
parent 4acf7f0b
......@@ -70,7 +70,7 @@ class Account < ApplicationRecord
include DomainNormalizable
SPAM_FLAG_CLASS_MAP = {
none: 0,
none: nil,
spam: 1,
safe: 2,
}.freeze
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment