Story#117991277 - switch off Contact's birthday and cc=EE validation on update for now

This commit is contained in:
Vladimir Krylov 2016-04-21 12:38:15 +03:00
parent c8ccac84f3
commit 16f0f940c8

View file

@ -253,7 +253,7 @@ class Contact < ActiveRecord::Base
errors.add(:ident, err_msg)
end
when BIRTHDAY
errors.add(:ident, err_msg)
errors.add(:ident, err_msg) if id.blank? # only for create action right now. Later for all of them
end
end
end