Hi
I solved it as Michael suggested And it was working .But now i
notified another issue. That is why reopening the thread. The issue is,
even if the validations fail, mail is sent to user (What I need is only
if update happens successfully on changed attributes then only mail to
be sent)
On 9 March 2010 08:31, Tom Mac li...@ruby-forum.com wrote:
even if the validations fail, mail is sent to user (What I need is only
if update happens successfully on changed attributes then only mail to
be sent)
if changed? save
deliver_user_edit_details!
else
return
Hi
Thank you. I have one more thing to clarify . If I write a
before_save filter as you suggested, then will mail be sent when ever
there is an update or save to this User model ? That is not what I want
if it behaves like that.Please excuse if I am wrong
Thanks
Tom
--
Posted via
On 3 March 2010 12:47, Tom Mac li...@ruby-forum.com wrote:
Hi
Thank you. I have one more thing to clarify . If I write a
before_save filter as you suggested, then will mail be sent when ever
there is an update or save to this User model ? That is not what I want
if it behaves like
4 matches
Mail list logo