module Carbon::Callbacks

Direct including types

Defined in:

carbon/callbacks.cr

Macro Summary

Macro Detail

macro 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

[View source]
macro after_send(&block) #

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

[View source]
macro before_send(method_name) #

Runs the given method before the adapter calls deliver_now

before_send :attach_metadata

private def attach_metadata
  # ...
end

[View source]
macro before_send #

Runs the block before the adapter calls deliver_now

before_send do
  # ...
end

[View source]