Commit 85db51f6 authored by Alex Denisov's avatar Alex Denisov

don't send notification when UsersProject destroyed

parent ed4fbcf6
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment