Permalink
Browse files

using size instead of count

  • Loading branch information...
1 parent 88ae7d8 commit c7f84b4cb3a895414a012820e37e38515b99eb73 @nuex committed Feb 22, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/views/admin/canada/newsletters/new.html.haml
@@ -27,7 +27,7 @@
= event.title
= "@ " + event.location.title + " (" + event.location.address + ")" if event.location
= " - " + event.time_string if event.time_string
- - unless @announcements.count.zero?
+ - unless @announcements.size.zero?
.section
.section_header
ANNOUNCEMENTS
@@ -38,7 +38,7 @@
= (i + 1).to_s + ") " + announcement.title
%br
= announcement.description
- - unless @hacks.count.zero?
+ - unless @hacks.size.zero?
.section
.section_header
HACKS OF THE WEEK
@@ -49,7 +49,7 @@
= hack.title
%br
= hack.description
- - unless @resources.count.zero?
+ - unless @resources.size.zero?
.section
.section_header
RESOURCES

0 comments on commit c7f84b4

Please sign in to comment.