gitlab-org--gitlab-foss/app/observers/user_observer.rb

5 lines
137 B
Ruby

class UserObserver < ActiveRecord::Observer
def after_create(user)
Notify.new_user_email(user.id, user.password).deliver
end
end