Make sure an empty splash works

This commit is contained in:
Henne Vogelsang 2014-11-21 13:22:20 +01:00
parent b6b0c104fd
commit 567d8689b8
3 changed files with 7 additions and 2 deletions

View file

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