Module: CommentsHelper
- Defined in:
- app/helpers/comments_helper.rb
Instance Method Summary collapse
Instance Method Details
#admin_comment_link(entity) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/comments_helper.rb', line 3 def admin_comment_link(entity) link = link_to(entity.commentable.title, admin_comment_path(id: entity.id)) raw "#{entity.commentable.model_name.human} <cite>#{link}</cite>" end |
#comment_link(entity) ⇒ Object
10 11 12 13 14 |
# File 'app/helpers/comments_helper.rb', line 10 def comment_link(entity) link = link_to(entity.commentable.title, entity.commentable) raw "#{entity.commentable.model_name.human} <cite>#{link}</cite>" end |