From e0a63e624f2032c3c281f316aa65829bf8f96dc4 Mon Sep 17 00:00:00 2001 From: Dennis Schubert <software@dsx.cc> Date: Tue, 17 Jan 2012 21:25:21 +0100 Subject: [PATCH] Fix my quick fix (use '.present?' instead of 'not .nil?') --- app/views/conversations/_conversation.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/conversations/_conversation.haml b/app/views/conversations/_conversation.haml index 5642433549..c71580bebe 100644 --- a/app/views/conversations/_conversation.haml +++ b/app/views/conversations/_conversation.haml @@ -19,7 +19,7 @@ .last_author .timestamp = t('ago', :time => time_ago_in_words(conversation.updated_at)) - - if not authors[conversation.id].nil? + - if authors[conversation.id].present? = authors[conversation.id].name - if conversation.participants.size > 2 -- GitLab