gitlabhq/app/models/user_observer.rb
2012-06-20 14:09:46 -04:00

6 lines
137 B
Ruby

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