Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show spam comments in admin interface

upload new resume
  • Loading branch information...
commit 7005cbdbd3d5e356fb6d7f89c4ab430ffe63e7c6 1 parent 68aedc7
Christopher authored
6 app/models/comment_activity.rb
View
@@ -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
BIN  public/resume.pdf
View
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.