Merge branch 'master' of github.com:internetee/registry

This commit is contained in:
Martin Lensment 2014-07-30 14:32:47 +03:00
commit cd4486c79c
3 changed files with 31 additions and 0 deletions

View file

@ -4,6 +4,8 @@ class Contact < ActiveRecord::Base
has_many :addresses
validates_presence_of :code, :name, :phone, :email, :ident
validate :ident_must_be_valid
validates :phone, format: { with: /\+\d{3}\.\d+/, message: "bad format" }