2012-08-27 00:13:03 +03:00
|
|
|
class UsersProjectObserver < ActiveRecord::Observer
|
|
|
|
def after_create(users_project)
|
|
|
|
Notify.project_access_granted_email(users_project.id).deliver
|
|
|
|
end
|
2012-08-27 00:32:03 +03:00
|
|
|
|
|
|
|
def after_update(users_project)
|
|
|
|
Notify.project_access_granted_email(users_project.id).deliver
|
|
|
|
end
|
2012-08-27 00:13:03 +03:00
|
|
|
end
|