app/models/invitation.rb in community_engine-2.3.0 vs app/models/invitation.rb in community_engine-2.3.1

- old
+ new

@@ -23,10 +23,12 @@ unless invalid_emails.empty? record.errors.add(:email_addresses, " included invalid addresses: <ul>"+invalid_emails.collect{|email| '<li>'+email+'</li>' }.join+"</ul>") record.email_addresses = (emails - invalid_emails).join(', ') end end - + + attr_accessible :email_addresses, :message + def send_invite emails = self.email_addresses.split(",").collect{|email| email.strip }.uniq emails.each{|email| UserNotifier.signup_invitation(email, self.user, self.message).deliver }