From 15f0070e02d51132e4f88126d5b52b70f87f405f Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Sat, 19 Jul 2014 14:48:57 +0000 Subject: [PATCH] fix bug in comment.rb --- app/models/comment.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)