Make sure an empty splash works
This commit is contained in:
parent
b6b0c104fd
commit
567d8689b8
3 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue