Verified contact has email or not
issue #764 Signed-off-by: Carlos Coelho <carlos@pencillabs.com>
This commit is contained in:
parent
ac7149fbe5
commit
483d9a234e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue