User comment_title helper avoid duplicate partial template

This commit is contained in:
Rei
2014-02-13 15:49:20 +08:00
parent e61ec28ba9
commit 36b0c2c4d4
7 changed files with 11 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
module CommentsHelper
def comment_permalink(comment)
def comment_link(comment)
case comment.commentable
when Topic
topic_path(comment.commentable, comment_id: comment.id, anchor: "comment-#{comment.id}")