2013-09-11 14:17:28 -04:00
|
|
|
module Emails
|
|
|
|
module Groups
|
|
|
|
def group_access_granted_email(user_group_id)
|
|
|
|
@membership = UsersGroup.find(user_group_id)
|
|
|
|
@group = @membership.group
|
2014-02-18 05:12:01 -05:00
|
|
|
@target_url = group_url(@group)
|
2014-06-18 07:41:12 -04:00
|
|
|
mail(to: @membership.user.email,
|
2013-11-08 10:04:36 -05:00
|
|
|
subject: subject("Access to group was granted"))
|
2013-09-11 14:17:28 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|