module
   Carbon::Callbacks
 
  Direct including types
Defined in:
carbon/callbacks.crMacro Summary
- 
        after_send(method_name)
        
          Runs the given method after the adapter calls deliver_now.
- 
        after_send(&block)
        
          Runs the block after the adapter calls deliver_now, and passes the return value of the adapter'sdeliver_nowmethod to the block.
- 
        before_send(method_name)
        
          Runs the given method before the adapter calls deliver_now
- 
        before_send
        
          Runs the block before the adapter calls deliver_now
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
        
        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
        
        macro before_send(method_name)
        #
      
      
        Runs the given method before the adapter calls deliver_now
before_send :attach_metadata
private def attach_metadata
  # ...
end