search for: recently_reset_password

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

2006 Nov 19
1
ActiveRecord save-update not performed ?
...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 quit .. then the Observer does its job to notify the emailer... WHY this behavior ? is there any way...