Skip to content

Commit 6d2ad87

Browse files
committed
fixed Comment#pings method (it's unused but still)
1 parent 1f292b9 commit 6d2ad87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/comment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def content_length
4242
end
4343

4444
def pings
45-
pingable = thread.pingable
45+
pingable = comment_thread.pingable
4646
matches = content.scan(USER_PING_REG_EXP)
4747
matches.flatten.select { |m| pingable.include?(m.to_i) }.map(&:to_i)
4848
end

0 commit comments

Comments
 (0)