Fixed bug in comments partial on missing users.

This commit is contained in:
Benjamin Meichsner 2009-09-11 16:10:18 +02:00
parent 84a026a677
commit 8a37a0e746
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
- comments.each do |comment|
.comment[comment]
.timestamp
%b=h "#{comment.user.ordergroup_name}"
= "(#{comment.user.nick} am #{format_time(comment.created_at)}):"
%b=h "#{comment.user.try(:ordergroup_name)}"
= "(#{comment.user.try(:nick)} am #{format_time(comment.created_at)}):"
= simple_format(comment.text)
- else
es gibt derzeit keine Kommentare.