mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Refactor
This commit is contained in:
parent
092460a604
commit
4133fd1464
3 changed files with 18 additions and 41 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue