app/mailers/purchase_notifier.rb
# Notifies the specified facility staff member if any order is placed within a facility
Notifies the specified facility staff member if any order is placed within a facility
Notifies the specified facility staff member if any order is placed within a facility
def order_notification(order, recipient)
    @order = order
    attach_all_icals_from_order(@order)
    subject = text("views.purchase_notifier.order_notification.subject")
    send_nucore_mail to: recipient, subject: subject, reply_to: @order.created_by_user.email, template_name: "order_receipt"
  end
def order_notification ( order , recipient ) @order = order attach_all_icals_from_order ( @order ) subject = text ( "views.purchase_notifier.order_notification.subject" ) send_nucore_mail to : recipient , subject : subject , reply_to : @order . created_by_user . email , template_name : "order_receipt" end
Notifies the specified facility staff member if any order is placed within a facility
Notifies the specified facility staff member if any order is placed within a facility
order
<not_specific>
recipient
<not_specific>