Carbon::Callbacks
Macros
after_send(method_name)
Runs the given method after the adapter calls deliver_now.
Passes in the return value of the adapter's deliver_now method.
after_send :mark_email_as_sent
private def mark_email_as_sent(response)
# ...
end
after_send
Runs the block after the adapter calls deliver_now, and passes the
return value of the adapter's deliver_now method to the block.
after_send do |response|
# ...
end
before_send(method_name)
Runs the given method before the adapter calls deliver_now
before_send :attach_metadata
private def attach_metadata
# ...
end