Sha256: 6b25a4a37b4672c5e5dddecac67a961c769e0cf367d78e08d981830b7f71efe7
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
class UserObserver < ActiveRecord::Observer def after_create(user) Authengine::UserMailer.signup_notification(user).deliver end def after_save(user) # the next line causes deprecation warnings in # actionmailer/lib/actionmailer/adv_attr_accessor.rb # this could become fatal when the deprecated methods are removed Authengine::UserMailer.activation(user).deliver if user.pending? # pending? true if user is activated Authengine::UserMailer.forgot_password(user).deliver if user.recently_forgot_password? Authengine::UserMailer.reset_password(user).deliver if user.recently_reset_password? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authengine-0.0.2 | app/models/user_observer.rb |