diff --git a/app/models/bulletin.rb b/app/models/bulletin.rb index 1df934a..f514003 100644 --- a/app/models/bulletin.rb +++ b/app/models/bulletin.rb @@ -189,8 +189,9 @@ class Bulletin def email_addresses addresses = self.email_members.collect{|member| member.email} rescue [] - addresses = addresses +[self.other_mailaddress] if !self.other_mailaddress.blank? - addresses.flatten + addresses = addresses +self.other_mailaddress.split(",") if !self.other_mailaddress.blank? + addresses = addresses.flatten.select{|e| e.present?}.map{|e| e.strip} + addresses end def email