Send notifiation on create UserProject relation (access granted)

This commit is contained in:
Alex Denisov 2012-08-27 00:13:03 +03:00
parent 2c32574ac3
commit aaeb37419a
6 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,5 @@
class UsersProjectObserver < ActiveRecord::Observer
def after_create(users_project)
Notify.project_access_granted_email(users_project.id).deliver
end
end