From 39e066f15f418cd189c602ff9502861e78ea920b Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Thu, 20 Oct 2022 16:23:54 +0300 Subject: [PATCH] remove validator --- app/models/contact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/contact.rb b/app/models/contact.rb index c06c7b601..e4a2a26ee 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -65,7 +65,7 @@ class Contact < ApplicationRecord validate :validate_html validate :validate_country_code, if: -> { self.class.address_processing? } validates :registrant_publishable, inclusion: { in: [true, false] }, if: -> { registrant? } - validates :registrant_publishable, inclusion: { in: [false] }, unless: -> { registrant? } + # validates :registrant_publishable, inclusion: { in: [false] }, unless: -> { registrant? } after_initialize do self.status_notes = {} if status_notes.nil?