From f00e0ada787a5f8e930d0d12ca216ef5ac52e456 Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 16 Dec 2010 11:23:57 -0800 Subject: [PATCH] do a bad thing in the helper to get comment links --- app/helpers/notifications_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index 24c3de2c6..fe45b7064 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -12,8 +12,8 @@ module NotificationsHelper link_to translation, aspects_manage_path when 'status_message' link_to translation, status_message_path(note.object_id) - when 'commnent' - link_to translation, object_path(note.object_id) + when 'comment' + link_to translation, object_path(Comment.first(object_id).post) when 'photo' link_to translation, photo_path(note.object_id) else