From f76e99770898d7abda9bfe31018d647b05355f3a Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Sat, 20 Jun 2015 21:09:30 +0200 Subject: [PATCH] empty != blank --- app/views/user/data.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/user/data.html.haml b/app/views/user/data.html.haml index 0cc8f933..684e4c59 100644 --- a/app/views/user/data.html.haml +++ b/app/views/user/data.html.haml @@ -24,21 +24,21 @@ %p.data-heading Bio %p.text-muted - - if current_user.bio.empty? + - if current_user.bio.blank? None set! - else = current_user.bio %p.data-heading Location %p.text-muted - - if current_user.location.empty? + - if current_user.location.blank? None set! - else = current_user.location %p.data-heading Website %p.text-muted - - if current_user.website.empty? + - if current_user.website.blank? None set! - else = current_user.website @@ -159,7 +159,7 @@ %p.data-heading Locale %p.text-muted - - if current_user.locale.empty? + - if current_user.locale.blank? None set! - else = current_user.locale