12 lines
232 B
Ruby
12 lines
232 B
Ruby
|
class UserObserver < ActiveRecord::Observer
|
||
|
def after_create(user)
|
||
|
UserMailer.deliver_signup_notification(user)
|
||
|
end
|
||
|
|
||
|
def after_save(user)
|
||
|
|
||
|
UserMailer.deliver_activation(user) if user.recently_activated?
|
||
|
|
||
|
end
|
||
|
end
|