An after_deliver filter for ActionMailer?

I have a mailer that should update a model once an email is delivered (a
“notice sent on” field). I don’t want to put this update code in the
email creation method of my ActionMailer::Base class because I’d rather
have this field updated when the email is sent rather than when it is
created.

Is there a filter such that I could do something like this?

delivery_filter :update_deliver_date_field

def update_deliver_date_field

update my model

end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs