跳至内容 跳至搜索
方法
A
B

实例公有方法

after_deliver(*filters, &blk)

定义在消息传递方法完成后的回调。

# File actionmailer/lib/action_mailer/callbacks.rb, line 21
def after_deliver(*filters, &blk)
  set_callback(:deliver, :after, *filters, &blk)
end

around_deliver(*filters, &blk)

定义在消息传递方法周围的回调。

# File actionmailer/lib/action_mailer/callbacks.rb, line 26
def around_deliver(*filters, &blk)
  set_callback(:deliver, :around, *filters, &blk)
end

before_deliver(*filters, &blk)

定义在消息发送到传递方法之前的回调。

# File actionmailer/lib/action_mailer/callbacks.rb, line 15
def before_deliver(*filters, &blk)
  set_callback(:deliver, :before, *filters, &blk)
end