gitlab-org--gitlab-foss/app/observers/users_group_observer.rb
Dmitriy Zaporozhets 8589824f00 Add UsersGroup observer
Trigger notification service when new user-group relation was created
2013-09-12 18:59:31 +03:00

9 lines
214 B
Ruby

class UsersGroupObserver < BaseObserver
def after_create(membership)
notification.new_group_member(membership)
end
def after_update(membership)
notification.update_group_member(membership)
end
end