Skip to content

Commit

Permalink
using size instead of count
Browse files Browse the repository at this point in the history
  • Loading branch information
nuex committed Feb 22, 2010
1 parent 88ae7d8 commit c7f84b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/admin/canada/newsletters/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -49,7 +49,7 @@
= hack.title
%br
= hack.description
- unless @resources.count.zero?
- unless @resources.size.zero?
.section
.section_header
RESOURCES
Expand Down

0 comments on commit c7f84b4

Please sign in to comment.