gitlab-org--gitlab-foss/app/observers/users_group_observer.rb
2013-12-09 09:22:59 +01:00

9 lines
250 B
Ruby

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