don't send notification when UsersProject destroyed

This commit is contained in:
Alex Denisov 2012-09-07 10:23:45 +03:00
parent ed4fbcf6b0
commit 85db51f660

View file

@ -1,5 +1,6 @@
class UsersProjectObserver < ActiveRecord::Observer
def after_commit(users_project)
return if users_project.destroyed?
Notify.project_access_granted_email(users_project.id).deliver
end
end