search for: useroberv

Displaying 1 result from an estimated 1 matches for "useroberv".

Did you mean: useroberver
2006 Nov 19
1
ActiveRecord save-update not performed ?
...nd the following issue : - when creating a new User record, I use an UserObserver to trap the before_save call back and send an email def after_create(user) UserNotifier.deliver_signup_notification(user) end - Once created a user can ask for a password reset, which is also trapped by the UserOberver def after_save(user) UserNotifier.deliver_reset_password(user) if user.recently_reset_password? end BUT once logged, when the current user edit himself the password, the reset_password is not trapped UNTIL the user quit... (I tried after_save, after_update...) no matter, the user MUST...