repo.or.cz
/
kwestie.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
initial working version of attachments.
[kwestie.git]
/
app
/
models
/
user_observer.rb
blob
6a56c4440a40dca85c868c3a5b7dfde5daa841b6
1
class UserObserver < ActiveRecord::Observer
2
def after_create(user)
3
UserMailer.deliver_signup_notification(user)
4
end
5
6
def after_save(user)
7
UserMailer.deliver_activation(user) if user.recently_activated?
8
end
9
end