Permalink
Browse files

Fixed select statement in attendees controller"

  • Loading branch information...
1 parent bdae059 commit 0b8cab7d71155b167aa4dab1ac99f432733677dc @anthonyrhook committed Jul 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/admin/attendees_controller.rb
@@ -18,10 +18,10 @@ def meals
end
def notattending
- @notceremony = Family.where('email is not ""').collect(&:people).flatten.select do |person|
+ @notceremony = Family.where('email != ""').collect(&:people).flatten.select do |person|
!person.is_guest? and !person.is_attending_ceremony? and person.is_invited_ceremony?
end
- @notreception = Family.where('email is not ""').collect(&:people).flatten.select do |person|
+ @notreception = Family.where('email != ""').collect(&:people).flatten.select do |person|
!person.is_guest? and !person.is_attending_reception?
end
@peopleunsure = Family.where(:email => [nil, '']).collect(&:people).flatten.reject(&:is_guest?)

0 comments on commit 0b8cab7

Please sign in to comment.