diff --git a/app/models/comment.rb b/app/models/comment.rb index a2bbc5fa..033f97e5 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -43,11 +43,8 @@ def like_by(user) end end - def liked(how_much) - unless how_much.nil? - increment_likes_cache(how_much) - commented_callback - end + def liked(how_much=nil) + commented_callback unless how_much.nil? end def liked_by?(user)