mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-04 22:51:04 -05:00
Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections. Fix error in refactoring Reverted some .size into .count
12 lines
251 B
Plaintext
12 lines
251 B
Plaintext
%a{:name => "comments"}
|
|
- if post.comments
|
|
%h2
|
|
=pluralize(post.comments.size, "comment")
|
|
- post.comments.post_order.each do |c|
|
|
= render :partial => "comments/single", :locals => { :comment => c }
|
|
|
|
- else
|
|
%h2 There are no comments yet
|
|
|
|
|