You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
498 B
21 lines
498 B
12 years ago
|
class Users::PermissionMailer < ActionMailer::Base
|
||
13 years ago
|
layout "emails"
|
||
|
default from: Settings.support_mail
|
||
|
|
||
|
def created(permission)
|
||
|
@permission = permission
|
||
|
mail(
|
||
|
:to => permission.user.email,
|
||
|
:subject => "#{permission.domain.name} was shared with you to administer"
|
||
|
)
|
||
|
end
|
||
|
|
||
|
def destroyed(permission)
|
||
|
@permission = permission
|
||
|
mail(
|
||
|
:to => permission.user.email,
|
||
|
:subject => "#{permission.domain.name} is no longer shared with you"
|
||
|
)
|
||
|
end
|
||
|
end
|