Updated actionmailer classes and API.
This commit is contained in:
parent
8679356ccf
commit
2d7d0d3b94
8 changed files with 98 additions and 92 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue