Merge branch '111601356-ident_type_validation' into staging

This commit is contained in:
Stas 2016-05-24 17:25:40 +03:00
commit 6f336ef230

View file

@ -33,7 +33,7 @@ class Contact < ActiveRecord::Base
uniqueness: { message: :epp_id_taken },
format: { with: /\A[\w\-\:\.\_]*\z/i, message: :invalid },
length: { maximum: 100, message: :too_long_contact_code }
validates :ident_type, inclusion: {in: %w( org priv birthday)}
validates :ident_type, inclusion: {in: %w( org priv birthday), message: :invalid}
validate :val_ident_valid_format?
validate :uniq_statuses?
validate :validate_html