2013-09-11 14:17:28 -04:00
|
|
|
module Emails
|
|
|
|
module Groups
|
2014-09-15 03:57:02 -04:00
|
|
|
def group_access_granted_email(user_group_id)
|
2014-09-14 12:32:51 -04:00
|
|
|
@membership = GroupMember.find(user_group_id)
|
2013-09-11 14:17:28 -04:00
|
|
|
@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
|