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
491 B
21 lines
491 B
13 years ago
|
class PermissionMailer < ActionMailer::Base
|
||
|
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
|