From b96f59c24abc619bfc0f4dd0c80c0251ebb9d153 Mon Sep 17 00:00:00 2001 From: Khalil Fazal Date: Sat, 30 Jun 2018 15:24:17 -0400 Subject: [PATCH] Added Comment::comment_link the method names are confusing. Why does Comment::link return the link to the submission instead? --- lib/redd/models/comment.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/redd/models/comment.rb b/lib/redd/models/comment.rb index 3aa234f..e0f8b18 100644 --- a/lib/redd/models/comment.rb +++ b/lib/redd/models/comment.rb @@ -205,6 +205,11 @@ class Comment < Model # @return [Boolean] whether the comment is distinguished property :distinguished?, from: :distinguished + # @return [String] the link to this specific comment + def comment_link + link.link + id + end + private def lazer_reload