Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

using size instead of count

  • Loading branch information...
commit c7f84b4cb3a895414a012820e37e38515b99eb73 1 parent 88ae7d8
@nuex authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/views/admin/canada/newsletters/new.html.haml
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.