Skip to content
Snippets Groups Projects
Commit 85db51f6 authored by Alex Denisov's avatar Alex Denisov
Browse files

don't send notification when UsersProject destroyed

parent ed4fbcf6
No related branches found
No related tags found
1 merge request!1364Project access notifications fixed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment