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.
This commit is contained in:
@@ -70,7 +70,7 @@ class Account < ApplicationRecord
|
||||
include DomainNormalizable
|
||||
|
||||
SPAM_FLAG_CLASS_MAP = {
|
||||
none: 0,
|
||||
none: nil,
|
||||
spam: 1,
|
||||
safe: 2,
|
||||
}.freeze
|
||||
|
||||
Reference in New Issue
Block a user