This commit is contained in:
Andres Keskküla 2014-08-15 12:55:54 +03:00
parent 092460a604
commit 4133fd1464
3 changed files with 18 additions and 41 deletions

View file

@ -71,10 +71,8 @@ class Contact < ActiveRecord::Base
def extract_attributes ph, type=:create
contact_hash = {
#code: ph[:id],
phone: ph[:voice],
ident: ph[:ident],
#ident_type: ident_type,
email: ph[:email]
}
@ -88,11 +86,6 @@ class Contact < ActiveRecord::Base
contact_hash.delete_if { |k, v| v.nil? }
end
def ident_type code
end
def check_availability(codes)
codes = [codes] if codes.is_a?(String)