Permalink
Browse files

fix empty/any bug re #no-comments

I think this was backwards no?
  • Loading branch information...
1 parent 149ebb6 commit 071d8f14d4d20f09abbf0169ddf7aa846d334f2c @knewter knewter committed Aug 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.textile
View
@@ -41,7 +41,7 @@ class PostView < Effigy::View
text('p', comment.summary)
attr('a', :href => url_for(comment))
end
- remove('#no-comments') if post.comments.empty?
+ remove('#no-comments') if post.comments.any?
end
end
@@ -93,7 +93,7 @@ class PostView < Effigy::View
find('p').text(comment.summary)
find('a').attr(:href => url_for(comment))
end
- find('#no-comments').remove if post.comments.empty?
+ find('#no-comments').remove if post.comments.any?
end
end
</pre>

0 comments on commit 071d8f1

Please sign in to comment.