From bbac778ddadafe744a002b11eeab9f472a81b085 Mon Sep 17 00:00:00 2001 From: did Date: Tue, 8 Mar 2011 17:25:38 +0100 Subject: [PATCH] dates can also be used as highlighted field --- app/views/admin/shared/menu/_contents.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/shared/menu/_contents.html.haml b/app/views/admin/shared/menu/_contents.html.haml index 106a4080..c8337e94 100644 --- a/app/views/admin/shared/menu/_contents.html.haml +++ b/app/views/admin/shared/menu/_contents.html.haml @@ -18,7 +18,7 @@ %ul - content_type.contents.latest_updated.each do |content| %li - = link_to truncate(content.send(content_type.highlighted_field_name), :length => 20), edit_admin_content_path(content_type.slug, content) + = link_to truncate(content.send(content_type.highlighted_field_name).to_s, :length => 20), edit_admin_content_path(content_type.slug, content) %span= time_ago_in_words(content.updated_at) - other_content_types do |content_types|