This commit is contained in:
Andres Keskküla 2014-08-18 10:58:01 +03:00
parent 91f373379a
commit 17f7a609cc
2 changed files with 8 additions and 3 deletions

View file

@ -66,6 +66,11 @@ class Contact < ActiveRecord::Base
updated_by ? updated_by.username : nil
end
def auth_info_matches pw
return true if auth_info == pw
return false
end
class << self
def extract_attributes ph, type=:create