From c6d2c714e9afa4f8b5c1787ccd27cc2479457525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Fri, 14 Jun 2013 14:47:54 +0200 Subject: [PATCH] never pass nil to image_tag In production that results in a not precompiled error --- app/views/conversations/_participants_popover.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/conversations/_participants_popover.haml b/app/views/conversations/_participants_popover.haml index 0e9f8a558..e955a6792 100644 --- a/app/views/conversations/_participants_popover.haml +++ b/app/views/conversations/_participants_popover.haml @@ -1,7 +1,7 @@ .conversation_participants_popover_content{ :"data-content-conversation-id" => conversation.id } .conversation_participants_popover - conversation.participants.limit(20).each do |participant| - = image_tag(participant.profile.image_url_small, + = image_tag(participant.profile.image_url(:small), :class => 'avatar', :title => participant.name, :data => {:toggle => 'tooltip'})