Class: Invitation

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/invitation.rb

Instance Method Summary collapse

Instance Method Details

#send_inviteObject



29
30
31
32
33
34
# File 'app/models/invitation.rb', line 29

def send_invite
  emails = self.email_addresses.split(",").collect{|email| email.strip }.uniq
  emails.each{|email|
    UserNotifier.(email, self.user, self.message).deliver
  }
end