Permalink
Browse files

Show spam comments in admin interface

upload new resume
  • Loading branch information...
1 parent 68aedc7 commit 7005cbdbd3d5e356fb6d7f89c4ab430ffe63e7c6 @redinger committed Sep 18, 2009
Showing with 2 additions and 4 deletions.
  1. +2 −4 app/models/comment_activity.rb
  2. BIN public/resume.pdf
@@ -6,7 +6,7 @@ def initialize(post)
end
def comments
- @comments ||= post.approved_comments.find_recent(:limit => 5)
+ @comments ||= post.comments.find_recent(:limit => 5)
end
def most_recent_comment
@@ -23,9 +23,7 @@ def find_recent
).collect {|post|
CommentActivity.new(post)
}.sort_by {|activity|
- activity.comments.any? ?
- activity.most_recent_comment.created_at :
- activity.post.created_at
+ activity.most_recent_comment.created_at
}.reverse
end
end
View
Binary file not shown.

0 comments on commit 7005cbd

Please sign in to comment.