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