Module: ActiveDelivery::Callbacks::InstanceExt

Defined in:
lib/active_delivery/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#notify_line(kind) ⇒ Object



46
47
48
# File 'lib/active_delivery/callbacks.rb', line 46

def notify_line(kind, ...)
  run_callbacks(kind) { super(kind, ...) }
end

#perform_notify(delivery) ⇒ Object



40
41
42
43
44
# File 'lib/active_delivery/callbacks.rb', line 40

def perform_notify(delivery, ...)
  # We need to store the notification name to be able to use it in callbacks if/unless
  @notification_name = delivery.notification
  run_callbacks(:notify) { super(delivery, ...) }
end