mirror of
https://github.com/zhigang1992/tsemple.git
synced 2026-04-30 13:42:21 +08:00
User comment_title helper avoid duplicate partial template
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user