Verified contact has email or not

issue #764

Signed-off-by: Carlos Coelho <carlos@pencillabs.com>
This commit is contained in:
Carlos Coelho 2016-03-07 09:43:55 -03:00
parent ac7149fbe5
commit 483d9a234e

View file

@ -9,7 +9,7 @@ class Contact < ActiveRecord::Base
format: URI::regexp(%w(http https)), allow_blank: true
def has_social_media?
return true if !facebook.blank? || !twitter.blank? || !googleplus.blank? || !instagram.blank?
return true if !facebook.blank? || !twitter.blank? || !googleplus.blank? || !instagram.blank? || !email.blank?
false
end
end