gitlabhq/app/observers/users_project_observer.rb
2012-09-03 21:46:17 +03:00

6 lines
162 B
Ruby

class UsersProjectObserver < ActiveRecord::Observer
def after_commit(users_project)
Notify.project_access_granted_email(users_project.id).deliver
end
end