Send notification on update UserProject relation (access changed)
This commit is contained in:
parent
aaeb37419a
commit
3c96d1f0e1
3 changed files with 20 additions and 3 deletions
|
@ -2,4 +2,8 @@ class UsersProjectObserver < ActiveRecord::Observer
|
|||
def after_create(users_project)
|
||||
Notify.project_access_granted_email(users_project.id).deliver
|
||||
end
|
||||
|
||||
def after_update(users_project)
|
||||
Notify.project_access_granted_email(users_project.id).deliver
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue