mvdenk/gelderland — Issue #11: Bug in show subject page
Author: mvdenk
Created: 2011-12-07 23:46:01+00:00
State: open
Labels: Bug

When nobody is logged in and you open the show subject page, it fails.

It says: Called id for nil

The following code is bugged:

def has_liked_comment(**user**, comment)
Like.where("$and" => [{created_by_id: **user.id**}, {comment_id: comment.id}])
end