Send notification on update UserProject relation (access changed)

This commit is contained in:
Alex Denisov 2012-08-27 00:32:03 +03:00
parent aaeb37419a
commit 3c96d1f0e1
3 changed files with 20 additions and 3 deletions

View file

@ -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