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:
parent
4acf7f0bce
commit
d7271b899f
|
@ -70,7 +70,7 @@ class Account < ApplicationRecord
|
||||||
include DomainNormalizable
|
include DomainNormalizable
|
||||||
|
|
||||||
SPAM_FLAG_CLASS_MAP = {
|
SPAM_FLAG_CLASS_MAP = {
|
||||||
none: 0,
|
none: nil,
|
||||||
spam: 1,
|
spam: 1,
|
||||||
safe: 2,
|
safe: 2,
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
Loading…
Reference in New Issue