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 'nochange'
    end

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to