Fixed contact not saving password on create

This commit is contained in:
Andres Keskküla 2014-08-27 14:16:43 +03:00
parent 2f94c0aa38
commit e7919e3644
2 changed files with 5 additions and 3 deletions

View file

@ -124,7 +124,7 @@ class Contact < ActiveRecord::Base
}
contact_hash[:code] = ph[:id] if type == :create
contact_hash[:auth_info] = ph[:authInfo][:pw] if type == :create
contact_hash.delete_if { |_k, v| v.nil? }
end