users: replace scopes with associations.
This commit is contained in:
@@ -80,7 +80,7 @@ class UserPresenter
|
||||
end
|
||||
|
||||
def deleted_upload_count(template)
|
||||
template.link_to(Post.for_user(user.id).deleted.count, template.posts_path(:tags => "status:deleted user:#{user.name}"))
|
||||
template.link_to(user.posts.deleted.count, template.posts_path(:tags => "status:deleted user:#{user.name}"))
|
||||
end
|
||||
|
||||
def favorite_count(template)
|
||||
|
||||
Reference in New Issue
Block a user