Skip to content

Commit 15f0070

Browse files
committed
fix bug in comment.rb
1 parent 7e587c3 commit 15f0070

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/models/comment.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@ def like_by(user)
4343
end
4444
end
4545

46-
def liked(how_much)
47-
unless how_much.nil?
48-
increment_likes_cache(how_much)
49-
commented_callback
50-
end
46+
def liked(how_much=nil)
47+
commented_callback unless how_much.nil?
5148
end
5249

5350
def liked_by?(user)

0 commit comments

Comments
 (0)