方法
实例公有方法
after_deliver(*filters, &blk) 链接
定义在消息传递方法完成后的回调。
源代码: 显示 | 在GitHub上查看
# 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) 链接
定义在消息传递方法周围的回调。
源代码: 显示 | 在GitHub上查看
# 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) 链接
定义在消息发送到传递方法之前的回调。
源代码: 显示 | 在GitHub上查看
# File actionmailer/lib/action_mailer/callbacks.rb, line 15 def before_deliver(*filters, &blk) set_callback(:deliver, :before, *filters, &blk) end