Updated actionmailer classes and API.

This commit is contained in:
benni 2011-05-11 10:53:18 +02:00
parent 8679356ccf
commit 2d7d0d3b94
8 changed files with 98 additions and 92 deletions

View file

@ -21,7 +21,7 @@ class Invite < ActiveRecord::Base
# Sends an email to the invited user.
def after_create
Mailer.deliver_invite(self)
Mailer.invite(self).deliver
end
private