gitlabhq/app/observers/users_project_observer.rb

6 lines
162 B
Ruby
Raw Normal View History

class UsersProjectObserver < ActiveRecord::Observer
2012-09-03 19:48:38 +02:00
def after_commit(users_project)
Notify.project_access_granted_email(users_project.id).deliver
end
end