Fixes unread_by scope to work with associations

In rails 4.1 Post.unread_by(user) works, but @site.posts.unread_by(user) does not,
as self refers to the association rather than the class.