---
# System prepended metadata

title: Callbacks

---

# Callbacks

*  after_save :send_push 
    **s:** (no settings)

    PushNotification.notify_user used also in: 
    * Job model
    * User model (force_sign_out -> can be ignored)

* after_save :notify_partner
    **s:** account.has_partner_api_callback?
    FeebackHelper classes later on (used in Order         commands)

* after_save :notify_delivery_started
    **s:** has_automatic_smss? / has_automatic_emails?
    uses Notification::Deliverer used also in Job


* after_save :notify_declined
    **s:** account.has_declined_delivery_email?
    uses InvitationMailer < ActionMailer
    
* after_save :notify_accepted
    **s:** account.has_accepted_delivery_email?
    uses InvitationMailer < ActionMailer
    
* after_save :notify_router
    **s:** account.routing_algorithm_is_automated?
    uses RouterHelper.ask_router used also in models:
    * customer
    * job
    * user
    * arrival
    
* after_commit :notify_partner_new, :on => :create
    applies everything same as for :notify_partner
    
* before_save :plan_decline
    **s:** account.has_autodecline_delivery? / account.autodecline_delivery_time.to_i
    not used anywhere which could be of interest
    